jldupont jldupont - 10 months ago 90
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.