On linux an unix-like systems is demon the designation of processes running in the background and providing certain services. Direct user intaractions with demons are not intended.
Questions tagged [daemon]
286 questions
5
votes
4 answers
How do I automatically restart a process on server reboot/process exit?
On my Ubuntu server I use God to monitor some Ruby processes/scripts, including a Queue system.
God automatically checks when one of my processes exists and restarts it. It also keeps track of memory usage and acts properly when specific conditions…

Simone Carletti
- 1,524
- 3
- 15
- 30
5
votes
2 answers
init script that logs output of the script
How can this be done? I know it's pretty simple and includes appending something like & or &> to the actual command that starts the init script.
But, what is the best approach and how can it be ensured that the init script detaches itself, suppose…

kapeels
- 355
- 1
- 6
- 18
5
votes
0 answers
Running Celery as a Daemon while using VirtualEnv
I've setup and tested celery on my amazon linux server, using mysql as the messaging backend and it works fine when running the program directly. My python project and celery install are located in a virtualenv. However if I attempt to daemonize…

elkelk
- 161
- 1
- 8
5
votes
4 answers
How do I find out the process id of the backgrounded process?
I've got a command (program) that I'd like to run with nohup and background it. Like
nohup command > logfile.txt &
How do I find out the process ID? I would like to be able to write the process id in a file, read it later and kill the process…
user66336
5
votes
5 answers
How to daemonize a shell task?
How can I run a console command (like cp or tar, for example) without needing to keep an open SSH?

Ivan
- 3,398
- 19
- 50
- 71
5
votes
6 answers
How to daemonize servers on Ubuntu?
I've got a couple of servers on my Ubuntu that need to be restart-proof daemonized. How can I do that with generic init first process? Should I swap to upstart or some other replacement?

Alex
- 2,357
- 5
- 32
- 41
5
votes
5 answers
Starting a mysql server in my ${HOME}?
I'm not root on my server (linux) and this server doesn't currently run a mysql server as a daemon.
Can I start a mysql daemon that would only work for my account and where the data/files would be stored somewhere in my ${HOME}/... ? How can it be…

Pierre
- 429
- 1
- 5
- 14
4
votes
1 answer
HostKeyAlgorithms in sshd config on debian - daemon reload fail
I have a Debian Jessie Server and I would like to verify the fingerprint of the ssh keys on the server about a DNS SSHFP record. This works fine, but if a client connect over ssh to the server, the server provide the ssh-ecdsa algorithm. I'd like to…

Volker Raschek
- 347
- 1
- 5
- 17
4
votes
1 answer
PHP script with systemd
I'm new to systemd and I've got issue with script my colleague gave me. This script worked as background process in Debian 7 but doesn't in Debian 8. I decided to rewrite it to systemd.
I have this in chunk8.service (which is located in…

maaboo
- 76
- 1
- 3
4
votes
3 answers
Scheduling tasks with Django
I have a Django website, and I want to have a certain piece of Python code run at regular intervals. What would be a good way to do that?
I know I can cron, but I would prefer the solution to be within Django.
I know there's a module called celery…

Ram Rachum
- 5,231
- 7
- 34
- 46
4
votes
1 answer
What is the proper way to restart a daemon with Ansible on OSX target?
I created a simple Ansible role with the purpose of configuring dnsmasq on OSX targets (dnsmasq is installed from homebrew).
I want to create a handler that would restart the daemon when configuration file gets changed (Ansible as of version 1.9.3…

techraf
- 4,243
- 8
- 29
- 44
4
votes
1 answer
Should I rather explicitly run programs in foreground (instead as a daemon), or `expect fork` when configuring upstart daemons?
Many programs allow to be run either in daemon mode (which is usually the default), or explicitly run it in foreground with a flag such as -f.
Now when configuring upstart to run programs like this, I can either do
exec foo -f # run in…

Jakub Arnold
- 1,744
- 10
- 26
- 33
4
votes
2 answers
Execute specific bash script on Gentoo Linux startup
I own a VDS running Gentoo Linux and I am curious about how to execute specific bash script at startup of my VDS.
I just want to startup apache2 at boot time and run two thin instances.

Eskat0n
- 143
- 1
- 5
4
votes
1 answer
Rename mailer-daemon in postfix
Is there a way to rename the email adress of mailer-daemon@example.com to some other (e.g. mailer-angel@example.com)? I need that the sender of the "Non delivery report" has other email adress than mailer-daemon@example.com
The change in…

jan2jen
- 41
- 1
- 2
4
votes
2 answers
Init script & the green [ OK ]
I am trying to install fast-cgi for nginx on an EC2 instance. I followed the steps explained here, but that is meant for Debian and does not work out of the box for a red-hat based system. I modified the script a bit to look like -
#!/bin/bash
###…

Lord Loh.
- 1,089
- 3
- 16
- 25