3 ms·
Daemonization is really something that ought to be done outside the process being daemonized, a la supervisord or (if you prefer Python) something like my own p
by jemfinch 15y ago
Daemonization is really something that ought to be done outside the process being daemonized, a la supervisord or (if you prefer Python) something like my own project, finitd[0]. Unless you have something you must do as root before dropping privileges, leave daemonization to a separate, purpose-built program like these. It's the UNIX way.
[0] https://github.com/jemfinch/finitd https://github.com/jemfinch/finitd