Daemon internals
A daemon is a program that runs as a background process, rather than being under the direct control of an interactive user.
How to daemonize a function
Here are all the methods to be defined:
start:=daemonize+runstop:= kill process from (known/stored) PIDrestart:stop+startrun:= custom logicdaemonize:= apply daemonization procedure to get independent process
Components
- PID file
.pidfile extension- Stored in
/tmp/daemonizer/pidfiles/