Questions tagged [daemon]

Daemons are programs which run in the background in multitasking operating systems. On Unix-like operating systems the names of many daemons end in the letter "d".

Filter by
Sorted by
Tagged with
15 votes
2 answers
98k views

cant start systemd - Failed to get D-Bus connection

I am trying to setup a daemon width systemd on Debian. systemd was already a part of the distro.. Have just added a new unit file my-daemon.service under /etc/systemd/system/ but after reboot I get ...
clarkk's user avatar
  • 439
0 votes
2 answers
608 views

Cannot Start Exim Daemon on Cygwin

I've been unable to start the Exim daemon after installing it in Cygwin on Windows 10. At the end of the exim-config setup, the daemon fails with this message: Do you want to start the exim daemon ...
ISOAnswers's user avatar
0 votes
1 answer
118 views

Recompiling and restarting a daemon

I am developing a server daemon. I already have a functional version of this server running, but I've now compiled a new version of it. How do I replace the current process with the new one? Can I ...
Wasabi's user avatar
  • 337
1 vote
0 answers
335 views

Restart a daemon without root in OSX

On OSX 10.10 I created a plist file in /Library/LaunchDaemons/ to start at launch an OpenVPN connection. However I encountered DNS problems when going from an internet interface to another (as WiFi to ...
PaulCo's user avatar
  • 111
0 votes
1 answer
424 views

Systemd run daemon at boot like System V

I'm configuring a Java app to run at boot using jsvc, following this tutorial which uses systemv (init.d). I'm running Ubuntu 16.04, which uses systemd, and am having a hard time finding exactly what ...
Luke Moll's user avatar
  • 143
1 vote
2 answers
3k views

Why won't my init.d service start?

I bought a Raspberry Pi 3 a couple of weeks ago and have been playing with it for a long while. I'm running Raspbian Lite headless and one thing I want to do is run some stuff on boot. Nothing ...
cgm123's user avatar
  • 21
2 votes
1 answer
2k views

Is it possible to run a launch agent as a user with sudo permissions?

I have an executable that needs to run every time a user logs in. It needs to run in the context of that user, but with root permissions, as if the user had run it with sudo. I have looked through ...
Chris Vasselli's user avatar
1 vote
1 answer
2k views

How to kill a daemon in Linux?

Note: Before you mark this question as duplicate, please note that I've tried all the solutions that I could get online, but still I'm unable to resolve the problem. I ran daemon through the ...
Arslan Ali's user avatar
1 vote
0 answers
569 views

Unable to load daemon and service exit with a return value of 3

Could someone help me with this problem? It seems like I can't execute the startDSEService.sh file. The permission allowing execution of the file is ticked and I tried chmod +x path/of/startDSEService....
Milky's user avatar
  • 31
2 votes
0 answers
136 views

DSE Servers not found and unable to initialize hash chunk service

I'm following this opendedup guide from github (https://github.com/opendedup/sdfs). However, I'm stucked at the DSE server part whereby need to mount a volume. Anybody can guide me through solving the ...
Milky's user avatar
  • 31
0 votes
1 answer
1k views

LaunchAgent has undesired root access

I am having a problem getting my LaunchAgent to run as a normal (not-root) user. Everything I've read implies this should be the default behavior. The expectation is that if you put the plist in /...
user1169420's user avatar
1 vote
0 answers
1k views

How to find on which port the TFTP server is running?

How to find remotely on which port the TFTP server is running on FreeBSD? The standard UDP port 69 is not listed amongst open ports when scan FreeBSD server with IP scanner.
minto's user avatar
  • 155
12 votes
8 answers
32k views

The '/var/run/supervisor.sock' file is not being created when I use Supervisord

I'm running Supervisord on my Ubuntu 14.04 server and everything works fine. I deploy using a git push and upon deployment I also need to restart my application server (gunicorn) which I can ...
kramer65's user avatar
  • 1,434
1 vote
1 answer
1k views

daemon /etc/init.d/ error when run as daemon but script works fine from command line

It errors when run from /etc/init.d sudo /etc/init.d/openconnect start * Starting open connect xxx.somedomain.com openconnect start-stop-daemon: unable to start /usr/local/bin/op_connect.sh (Exec ...
Conor's user avatar
  • 153
0 votes
0 answers
399 views

public key authentication not working with "ssh/sftp Daemon" on android

I can sftp to my android device using password. However i can not set up this using public key auth. $ ssh -vvv [email protected] SSHD Server debug1: Authentications that can continue: publickey,...
jsaak's user avatar
  • 133
-2 votes
1 answer
165 views

How to run an SSH server on a laptop?

I want to create a program that allows a user to SSH into their laptop. But there is a serious problem: laptops sleep when they close. In particular, I believe this cannot be disabled on OS X. Does ...
William Rosenbloom's user avatar
0 votes
0 answers
58 views

Perform Background Tasks in Low Power Mode - Possible?

Is there a way to schedule low power background activities to be performed while a computer is idle, sleeping, or even powered off? Until recently I would have thought the answer was unconditionally "...
William Rosenbloom's user avatar
0 votes
1 answer
95 views

How can I enable arbitrary users to edit files in '/opt' sub-tree?

I am user 'somebody'. I have a typical "Web blob" website ecosystem ( essentially an FS sub-tree starting at Apache's typical "htdocs" directory ). Its files are owned by 'root', and grouped to '...
bernz's user avatar
  • 178
0 votes
1 answer
395 views

bash: show names of background jobs in the bash prompt

It would be cool if the bash prompt can be used a a mini task bar. Can the bash prompt (PS1) show the names of the jobs listed in the jobs command?
american-ninja-warrior's user avatar
31 votes
3 answers
51k views

Start a systemd user service at boot

I am trying to start a systemd service for a specific user (service name/goal is not relevant). I do that because I need to have a per user process of an application running at startup. Here is what I ...
Jesus_21's user avatar
  • 411
1 vote
0 answers
444 views

emacs --daemon doesn't successfully start the server

I am attempting to set up a systemd daemon for emacs in NixOS. When I added a systemd unit, I noticed that it was continually restarting over and over again. I discovered that this was because when I ...
cheshircat's user avatar
3 votes
3 answers
11k views

OS X - How to get simple launchd daemon working on Yosemite and El Capitan

I am no stranger to launchd on OS X. I've created several daemons in the past, last with Mountain Lion Mavericks. However, I seem to be struggling to get the most simplest of plists working on ...
Chris Harris's user avatar
2 votes
1 answer
2k views

Docker - Error starting daemon

I have tried to install Docker to my RPI on Arch Linux and got the following error message, when try to start a new container. FATA[0000] Error starting daemon: Error initializing network ...
plaidshirt's user avatar
0 votes
0 answers
30 views

Do Unix-based Systems retain Daemons or Hardware Information post-Reboot?

Background: I dual-boot Mac OSX Yosemite and Ubuntu 15.04 on a Macbook Pro Retina with rEFInd boot loader. I have a customized daemon for controlling the fans on Ubuntu, the reason being that I have ...
Addison Crump's user avatar
1 vote
1 answer
339 views

What is the name of the daemon process of mysql in OS X?

I have just installed mysql in OS X and this code works fine: String url = "jdbc:mysql://localhost:3306/"; String dbName = "information_schema"; String driver = "com.mysql.jdbc.Driver"; String ...
Koray Tugay's user avatar
  • 1,940
5 votes
1 answer
12k views

start ddclient as daemon with systemd

I'm trying to start ddclient as daemon in my Ubuntu 15.04, which now uses systemd, but was unable to even following the Ubuntu wiki at https://help.ubuntu.com/community/DynamicDNS to words. I've ...
xpt's user avatar
  • 8,681
3 votes
1 answer
680 views

How to daemonize a bash script only if --daemon flag is given?

I have my script.sh and want to run it with ./script.sh or ./script.sh --daemon, having it remain in the foreground unless the --daemon flag is given, in which case it should detach and go into the ...
nullUser's user avatar
  • 753
0 votes
2 answers
37 views

Service com.apple.quickook doesn't stop from restarting

Running Mac OS X 10.2.2 in MacBookPro model MacBookPro11,2. I'm having this issue that I could find using console application: A daemon named com.apple.quicklook deosn't stop from restarting after 0 ...
tbennett's user avatar
  • 145
0 votes
2 answers
356 views

Does anyone know what "discoverd" daemon is?

Saw this process running in Activity Monitor. Not sure what it does...anyone seen this before? Tried searching for list of "normal" mac os daemons but most lists are incomplete. Have not found any ...
steve's user avatar
  • 1
1 vote
0 answers
277 views

Can I use /etc/init/ on Debian Wheezy to manage a daemon process?

I want to run a PHP daemon process and found a solution at Stackoverflow but unfortunately its not working. Now I thought Upstart is not installed since Debian still uses System V. I have two ...
Aley's user avatar
  • 316
1 vote
4 answers
15k views

Can't start MySQL to reset root password

I've installed mysql-server on a Linux box and forgot (oops) the root password. Having looked around the internet, the general method is so: Stop MySQL (sudo service mysql stop) Start MySQL in ...
Luke Moll's user avatar
  • 143
5 votes
1 answer
6k views

Increasing Yosemite maxfile limit for Application

I've been trying to up the maxfile limit and maxfileperproc limit on Yosemite, with no luck. I have created a sysctl.conf file in the etc folder, which has successfully increased the values when ...
toadstool333's user avatar
4 votes
1 answer
7k views

Where to log stdout and stderr of a daemon

I am writing my first linux daemon and I am wondering where to log its stdout and stderr. It is going to work for all users. I guess I could do it wherever I wanted, I just wonder if there are some ...
XNor's user avatar
  • 143
0 votes
0 answers
169 views

Customize mailer-daemon error messages in LAMP

I need to customize bounce and error messages sent from MAILER-DAEMON in a LAMP environment. Instead of the standard message From: [email protected] To: [email protected] Subject: Mail ...
tony gil's user avatar
  • 223
0 votes
1 answer
2k views

how can I run a java application as daemon?

I use to run an application in CentOS with the command nohup java -jar AnalyticsBackend.jar & Now I want to run this application as daemon i.e. on reboot, this application shoud start running ...
prashantas's user avatar
0 votes
0 answers
38 views

How can I queue a script to run the next time a system is up and connected to the internet?

I'm using mailsend (on a Mac) to send mail from the command line. I'd like to set this up such that I can execute a send command, but if my system is disconnected from the internet, that command is ...
aresnick's user avatar
  • 291
81 votes
6 answers
91k views

What's the difference between docker.io and docker?

Trying to learn docker here but I am a bit confused on what the difference is between docker.io and docker. Is docker.io the daemon server and docker the client? Why does the daemon need to run all ...
Pithikos's user avatar
  • 1,634
2 votes
1 answer
6k views

Will re-installing MySQL remove or delete existing databases?

If I reinstall MySQL, without removing the actual MySQL installation, would it rewrite all files without deleting my databases? My problem is my mysqld is broken, due to the fact that I accidentally ...
NeoVe's user avatar
  • 147
1 vote
1 answer
2k views

linux: monitor logfile for a string and execute script

I want to monitor a logfile (syslog) on my linux debian box. So if there is a new entry with a secific string, i want to execute a script. The strings are "alarm start" and "alarm end" So it should ...
whopperg's user avatar
1 vote
1 answer
974 views

Logstash agent doesn't run as a daemon on MAC OS X 10.9.1

I need to run the logstash agent as a Daemon on an MAC OS X System whenever the system boots up terminal: /usr/local/logstash/bin/logstash agent -f /usr/local/etc/cvlog.conf Per terminal the program ...
user329324's user avatar
0 votes
1 answer
643 views

init.d service doesn't start

I have installed ushareand want to start is with booting. sudo service ushare startworks, and there is a link to start ushare in /etc/rc2.d (and also rc3, rc4, rc5) and there are stop links in other ...
pirad's user avatar
  • 185
0 votes
1 answer
415 views

SMTP listeners on a workstation?

I'm working on a Debian 7.30 (x64) workstation. I noticed I have a couple of SMTP listeners: $ netstat -A inet,inet6 --listening | grep -i smtp tcp 0 0 localhost:smtp *:* ...
jww's user avatar
  • 12.1k
0 votes
1 answer
327 views

Killing daemon and closing port without ability to use 'lsof'

I have an application that spits out the time when it is requested from a client. I don't have permissions to use port 13, so I put it on a really high-numbered port. Now I can't kill that port, and I ...
user14717's user avatar
  • 113
0 votes
1 answer
1k views

OpenVPN server issues

I am unable to connect to my OpenVPN server running on latest ArchLinux version, the port seems open if I scan from the outside, so im pretty sure its correctly forwarded, however the client displays "...
Caluka's user avatar
  • 1
1 vote
1 answer
902 views

How can I run the Trickle bandwidth throttler as daemon (trickled) on start-up?

I want to run the bandwidth throttler trickled automatically on boot up. (Raspbian OS on the Raspberry Pi). What methods are there, and which one(s) are standard practice? The options I've found are ...
Jodes's user avatar
  • 443
2 votes
1 answer
1k views

Launchd alternatives

I am writing an application that uses a library that will not work when the application is run as a launchd daemon. There is a bug in the library where it will throw a bus error when used from a ...
Eric Milas's user avatar
2 votes
2 answers
1k views

Cross-platform daemon/service stop and start

Is there a tool which can control daemons/services in a cross-platform manner? In programming there are different build tools that allow you to build software from source on different platforms; the ...
Anthony's user avatar
  • 167
31 votes
5 answers
105k views

How to monitor a service and restart if stopped in Linux

Actually I'm not so sure whether i should use Shell Scripts, or if there some ways already. But whatever approach we use, i would like to keep a Service running all the time. Let's say apache2 as an ...
夏期劇場's user avatar
0 votes
2 answers
2k views

How to run app on startup as different user?

I have MineCraft server, and I need run it every time I start Debian. I solved it, but it always run as root. I need it run as normal user.
user2945696's user avatar
7 votes
2 answers
5k views

Teamviewer-like SSH daemon

I have a computer at home with SSH installed which I would like to be able to control remotely. However, I am not able to allow SSH port forwarding through my router, so the only way to get in would ...
danielmhanover's user avatar