Hello,

2011/5/26 黄毅 <[email protected]>:
> My program use multiprocessing to spawn several worker processes, supervisor
> can stop the main program, but don't kill worker processes. How can i let
> worker processes to be killed when supervisor stop my service.

Did you write yourself the worker process? Then the easiest way is to
add cleanup step which will react on signal sent by supervisord
(SIGTERM AFAIK, please check the documentation) and then stop all
children.

If it is 3rd party software check its documentation which signal can
be send in order to stop all children.

Regards,
Luke


-- 
Łukasz Nowak IT Specialist [email protected] http://lnowak.com/
Skype: Shufla jid: [email protected] gg: 1157726
``Use the Source, Luke...''
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to