python-daemon and PID files

Ian Pilcher arequipeno at gmail.com
Sun Mar 5 00:09:15 EST 2017


Is it possible to get python-daemon to create "systemd style" PID file?

I.e., systemd wants a daemon to write a file with a specific name that
*contains* the PID of the child process.  python-daemon, OTOH, seems to
use its pidfile parameter as more of a lock file.

Currently, I'm creating my PID file manually in the child process, but
systemd complains, because it wants the PID file to exist before the
parent exits.

-- 
========================================================================
Ian Pilcher                                         arequipeno at gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================




More information about the Python-list mailing list