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".

The name "daemon" is standard on Unix-like operating systems. Modern Windows operating systems prefer the term "service". On Microsoft DOS and early versions of Windows the equivalent were called "TSR" which stood for "Terminate and Stay Resident".

154 questions
76
votes
6 answers

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 the time?
Pithikos
  • 1,564
  • 2
  • 15
  • 20
50
votes
9 answers

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 myprocess /bin/myprocess & esac In certain conditions,…
Honza
  • 603
  • 1
  • 5
  • 5
35
votes
4 answers

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, of not being able to use any systemd commands on WSL I…
Caeleste
  • 782
  • 1
  • 11
  • 25
31
votes
5 answers

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 example. Then .. Whenever the apache2 service is…
夏期劇場
  • 700
  • 3
  • 8
  • 17
26
votes
3 answers

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 or MySQL service running all the time. Whenever I…
Aviv
  • 740
  • 4
  • 13
  • 31
26
votes
4 answers

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 achieved so far: I create a unit file in…
Jesus_21
  • 361
  • 1
  • 3
  • 3
14
votes
2 answers

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 this error no matter what I do. It worked before…
clarkk
  • 429
  • 1
  • 9
  • 17
13
votes
2 answers

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?
Kevin Gurney
  • 349
  • 1
  • 7
  • 15
13
votes
3 answers

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] root 4 0.0 0.0 0 0 ? S< …
user626201
  • 231
  • 1
  • 2
  • 6
12
votes
8 answers

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 supposedly do using supervisorctl. In my supervisord.conf,…
kramer65
  • 1,394
  • 4
  • 21
  • 43
9
votes
1 answer

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 permissions work for a running service? How can I…
Gigitsu
  • 293
  • 2
  • 4
  • 9
8
votes
4 answers

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 you to send commands to the daemon in a text-only…
Adam R. Grey
  • 371
  • 1
  • 2
  • 13
8
votes
4 answers

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 Executed from terminal, works like charm. So, I…
rah606
  • 93
  • 1
  • 5
8
votes
1 answer

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 trying to run the script.. The file that the…
CaseyIT
  • 3,351
  • 2
  • 19
  • 21
7
votes
2 answers

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 be to have the installation on my computer listen…
danielmhanover
  • 247
  • 3
  • 10
1
2 3
10 11