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".
156
questions
78
votes
6
answers
90k
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 ...
50
votes
9
answers
136k
views
How to automatically restart a linux background process if it fails?
I have a process which is executed by init.d script on the background. Eg:
case "$1" in
start)
/bin/myprocess &
stop)
killall myprocess
restart)
killall ...
37
votes
4
answers
17k
views
How does WSL/WSL2/WSLg work without systemd?
As I've understood it, systemd is Linuxes' "master"-daemon, managing all other processes right after it has been started up and run its init-function.
Since I had this (now resolved) issue, ...
31
votes
3
answers
50k
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 ...
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 ...
26
votes
3
answers
85k
views
How do I prevent Linux services from auto-starting?
I have recently migrated from Windows to Linux (xubuntu)
I am a developer and have installed everything I need, LAMP. In Windows I used to turn off all unnecessary services - I don't need the Apache ...
15
votes
2
answers
97k
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 ...
13
votes
3
answers
11k
views
What do the [..] mean in 'ps' and how do you create a process like it?
When running ps, you get something like:
root 2 0.0 0.0 0 0 ? S< 00:00 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< 00:00 0:00 [ksoftirqd/0]...
13
votes
2
answers
26k
views
Pulseaudio Daemon Startup Failed
When running startx on Arch Linux, the error:
E: [pulseaudio] main.c: Daemon startup failed.
is returned.
Is there any way to fix this error?
12
votes
8
answers
31k
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 ...
9
votes
1
answer
38k
views
Linux permissions for services
How do permissions work for services in Linux? I already know that I can set read, write and execute permissions for files and directories with chmod each for owner, group and other users but how do ...
8
votes
4
answers
6k
views
Bash-script as linux-service won't run, but executed from terminal works perfectly
I have custom script to mount google drives.
Part of this script, is following code:
if [ ! "$(which google-drive-ocamlfuse)" ]
then
echo "Install google-drive-ocamlfuse first!"
exit 1
fi
...
8
votes
1
answer
13k
views
Stop a runaway launchd process on OS X Leopard
I created a launchd .plist file to in order to have a python script run every hour. I ended up editing and later deleting the .plist file ( in /Library/LaunchDaemons )... but somehow launchd is still ...
8
votes
4
answers
23k
views
Remote deluge daemon connection
I'm trying to follow this guide to run a deluge daemon on a headless server. The client part seems to be working, but the server part doesn't seem to work at all.
Deluge-console is supposed to allow ...
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 ...
7
votes
1
answer
812
views
MacOS - "at" command is not working
I've started the atrun daemon using the following command.
$ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist
Added my username to /var/at/at.allow file.
$ cat /var/at/at....
7
votes
1
answer
4k
views
Is it possible run Transmission daemon and Qt/GTK GUI at once in sync?
The title is the question.
Originally this Ubuntu machine was meant to be headless, but I installed LXDE. Usually Transmission is run by the default GTK+ GUI. Instead of making sure the daemon runs ...
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 ...
5
votes
1
answer
4k
views
Supervisorctl stop all = stalled processes?
I'm running several PHP CLI scripts and monitoring them via Supervisor.
When I use supervisorctl to monitor them, the scripts show like this:
cleanup RUNNING pid 1805, uptime 0:00:41
...
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 ...
4
votes
3
answers
5k
views
need a bittorrent daemon
I'm building a Ubuntu server for the house. I want to centralize torrents. what I'm looking for is something that runs as a service (daemon) that has 3 folders to configure.
Actively downloading ...
4
votes
3
answers
4k
views
Disabling syslogd in FreeBSD
I'm running FreeBSD in a very small VM with about 1.5G of space. I'd like to disable syslogd to save disk space, but there is no entry for it in /etc/rc.conf. service -e shows that syslogd is indeed ...
4
votes
4
answers
10k
views
ubuntu server, trying to get a service/daemon to start
I followed the instructions here, but when I enter "sudo service mydaemon start". I get "mydaemon: unrecognized service". I have verified that the files are in the proper places, and I took the ...
4
votes
1
answer
12k
views
User Permissions: Daemon and User
I often run into this issue on Linux, and I'd love to know the proper way of solving it.
Say I have a daemon running. In my example, I'll use LigHTTPD, a webserver.
Some software, like Wordpress, ...
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 ...
4
votes
2
answers
294
views
Copy Linux liveUSB causes errors with init.d scripts - Impossible..?
Please post your thoughts ideas or anything you may come up with. I would be very interested to see what anybody else is thinking.
The Overall Problem
When I install a simple Java application (that ...
3
votes
1
answer
4k
views
Starting and stopping systemd services with OnCalendar for a period of time, every day
I have a two services (a video player and an image recognition daemon) that I want to start at 9am and finish running at 23pm every day (as well as on boot, although the system is going to be running ...
3
votes
1
answer
949
views
What benefits does daemonizing give me?
If I start something like uWSGI via SSH with my normal login user (assuming I should), and "daemonize" it, does that mean I can log out of SSH and uWSGI will remain running?
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 ...
3
votes
1
answer
1k
views
inetd analog for Windows
Need a better analog of inetd daemon for Windows.
Currently using http://sourceforge.net/projects/winetd/, but it's outdated with bugs present.
Please recommend any better solutions for running your ...
3
votes
0
answers
75
views
Manage processes on an distributed windows computer system
I want to manage the startup / re-start and shutdown of a multi module software system running on a set of windows machines.
For example:
[some machines booted, some still doing so]
run the whole ...
2
votes
5
answers
15k
views
Easy way of daemonizing in CentOS 5.4
I know there is a program called upstart that can make it easy to make small daemons. I can't get this program to configure on CentOS. I get all sort of errors concerning pkg-congfig, libnih, and dbus....
2
votes
1
answer
4k
views
Running – or only starting – a daemon using launchd
I'm trying to set up YouTrack on OS X Lion Server and have it launch at boot using launchd. I have downloaded the YouTrack jar file which I can successfully run from the command line using java -...
2
votes
2
answers
3k
views
How can I find out what IRC Daemon a certain server is running?
To get an overview on IRC, I wanted to find out what kind of IRC server software/daemon (like unrealircd) runs on a certain server.
Is there a possibility to get this information?
2
votes
2
answers
386
views
How's responsible for displaying `Starting ... [ ok ]`
When I start a service such as:
root@foo [~]# service foobar stop
Stopping Foobar: [ OK ]
I can see a status indicator: [ OK ] which is different from the ...
2
votes
1
answer
612
views
Where does Solaris start sshd?
I'm working on a Solaris 11.3 i86pc machine. Solaris ships an ancient version of OpenSSH and SunSSH, and they can only use RSA. I am trying to update OpenSSH.
I built and installed a modern version ...
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 ...
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 ...
2
votes
1
answer
15k
views
Samba: smbd unrecognized service
Running service smbd restart on a Debian Home server gives me an error reading smbd unrecognized service. The service ran fine after the initial installation, with the abbreviated output being:
apt-...
2
votes
1
answer
978
views
Using launchd for persistent scripts
I have launchd configured to run a script. This works fine for the user who installed it (me), but it relaunches the script every time I log in, while I'd like it to run as long as the computer is on (...
2
votes
1
answer
675
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 ...
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 ...
2
votes
1
answer
2k
views
Send command to daemon
I have a minecraft server running as a daemon. When you run it normally (not as a daemon), you can type commands into the console. How can you get to the console so I can send it commands while it's ...
2
votes
1
answer
3k
views
What is the name of the screensaver daemon on Mac OS X?
My Mac's screensaver seems to be frozen, and I think quitting the process through SSH will resolve the problem. Does anyone know what the name of the process is?
2
votes
1
answer
11k
views
Installing daemon on a fresh ubuntu system
I have done a linux service using the article on this link
http://shahmirj.com/blog/the-initd-script
After that I copied the files into the init.d directory
cp -f "myserviced" "/usr/sbin/myserviced"
...
2
votes
1
answer
482
views
systemctl (Fedora 17) and interacting spawned processes's consoles
Introduction
I've recently upgraded to Fedora 17 and I'm getting used to the newer systemctl daemon manager versus shell init scripts.
A feature I need on some of my daemons is the ability to ...
2
votes
1
answer
159
views
Run serveral daemon using python
I noticed that serveral daemon invoked python seperately.
For example, I have both wicd and ibus daemon running on my machine. Instead of launching a single instance of python, the daemons run with ...
2
votes
2
answers
59
views
artsd on a server
On a debian server, I see artsd is running, I don't understand why. It's not my fault.
Is there some explication / usage to run a sound daemon on a server ?
~/ ps xf
PID TTY STAT TIME ...
2
votes
1
answer
4k
views
daemons and daemon users (specifically transmission-daemon) on OS X 10.5.8
I'm trying to set up transmission-daemon on a box running Mac OS 10.5.8. I want to do things the right way, which means (to my understanding)
create a service user (_transmission, for example) for ...
2
votes
1
answer
1k
views
/var, /var/log on separate partition fails to umount on shutdown, how to debug
As the title says, I have /var and /var/log on separate partitions.
On shutdown, I get the error, that umount /var/log, and later umount /var failed.
My question is:
How to debug this issue?
If ...