Hacker News new | ask | show | jobs
by jemfinch 5307 days 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

1 comments

I don't really understand how it would matter to a user, but you do know supervisord is written in python as well right?
Ah, no. I was actually thinking of DJB's daemontools, but had supervisord on the mind because it was mentioned elsewhere in this thread.