Killing child processes with Upstart
Evgen Koval
EKoval at lohika.com
Mon May 7 13:40:22 UTC 2012
Hello !
I have a script written in Python, which spawns some child processes and manages them then. One of it's tasks is to terminate all child processes and wait until all of them died.
I use Upstart to run this script, here is my .conf:
**********
exec python /usr/scraper/scraper/manager.py
kill timeout 20
**********
The problem is that when I type "stop <task>", Upstart sends stop signal not to only master process, but all child processes as well.
This is not very good for me, because I'd like manager to control child processes.
The question is:
Is it possible to tell Upstart not to touch child processes and send TERM signal only to master process ?
Thanks
Eugene
More information about the upstart-devel
mailing list