Re: python-daemon and PID files

2017-03-06 Thread Ben Finney
Ethan Furman writes: > On 03/04/2017 09:09 PM, Ian Pilcher wrote: > > > Is it possible to get python-daemon to create "systemd style" PID > > file? Short answer: No, that's the job of whatever ‘pidfile’ object you provide. Medium answer: Yes, by implementing that behaviour in the object you ch

Re: python-daemon and PID files

2017-03-05 Thread Ian Pilcher
On 03/04/2017 11:14 PM, Chris Angelico wrote: Why do you need a pidfile? When I get systemd to start a process, I just have it not fork. Much easier. Forget about python-daemon - just run your script in the simple and straight-forward way. Because forking daemons was good enough for my grandpap

Re: python-daemon and PID files

2017-03-04 Thread Ethan Furman
On 03/04/2017 09:09 PM, Ian Pilcher wrote: 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

Re: python-daemon and PID files

2017-03-04 Thread Chris Angelico
On Sun, Mar 5, 2017 at 4:09 PM, Ian Pilcher wrote: > 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 parame