blackhole.daemon
¶Provides daemonisation functionality.
An object for handling daemonisation.
Fork off the process.
SystemExit – With code os.EX_OK
when fork is successful.
DaemonException – When fork is unsuccessful.
Pid of the process, if it’s been daemonised.
DaemonException – When pid cannot be read from the filesystem.
The current pid.
Note
The pid is retrieved from the filestem. If the pid does not exist in /proc, the pid is deleted.