Table of Contents
daemonize - make a prog a daemon
daemonize prog [args]
Make
a prog, shell- or other script a daemon. The new daemon will be a session
leader with umask of 027, "/" as directory and standard file descriptors
closed.
To avoid unnecessary library dependencies the binary was created with nasm
(dietlibc created binaries fail on some grsec kernels).
The
return value is 1 if forking failed otherwise 0.
daemonize loadlogger.py
Only the standard file descriptors for stdin, stdout and stderrr
(0,1,2) are closed.
Frank Bergmann, http://www.tuxad.com
Table of Contents