jldupont jldupont - 1 year ago 137
Linux Question

bash pipe & sigterm

I have a bash script "script" which roughly looks like:


cmd1 | cmd2 | cmd3

When I do a
kill script
(or more precisely when I do a 'stop script' in
), not all cmd* are killed. How can I make sure they are terminated along with the script that spawned them?

Answer Source

Supervisord has a killasgroup option (false by default) which determines whether to propagate stop/terminate signals to child processes.



Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download