Le 27/12/2015 01:43, Steve Litt a écrit :
So I found a slightly different way to code the Python program such
that when you kill the Python program, you kill inotifywait, and when
you kill inotifywait, you terminate the Python program, and confirmed
that my new way works well in Runit, which probably also means it runs
well in daemontools-encore or s6, and very well might run right, out of
the box, when declared as a respawn in /etc/inittab or as a command
in /etc/rc.local.
Good to learn that you have found a solution. But let me insist on
the fact that your daemon would be neater if it was one single process.
python-inotify is not an application; it is a thin and a thick binding
of inotify for Python and is available in Debian. It would make your
daemon better at the sole cost of a package-dependency on
python-inotify, which, I think, is worth.
Didier
PS. I would never have imagined I would eventually make propaganda for a
Python module :-)
_______________________________________________
Dng mailing list
[email protected]
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng