This module is responsible for running a program in daemon mode/
It uses the Unix double fork method to do so.
deiman.deiman.Deiman
-
class deiman.deiman.Deiman(pidfile, stdin='/dev/null', stdout='/dev/null', stderr='/dev/null')[source]
-
daemonize()[source]
This is where the Unix double fork magic happens
-
delpid()[source]
Remove the existing pidfile from the filesystem
-
restart()[source]
Restart the daemon
-
start()[source]
Start the daemon
-
status()[source]
Return the state of a process
-
stop()[source]
Stop the daemon