supervisord stopping child processes

后端 未结 6 2051
隐瞒了意图╮
隐瞒了意图╮ 2020-12-23 09:38

One of the problems, I face with supervisord is that when I have a command which in turn spawns another process, supervisord is not able to kill it.

For example I h

6条回答
  •  無奈伤痛
    2020-12-23 09:43

    Doing the following early in the main bash script called by supervisord fixed the problem for me:

    trap "kill -- -$$" EXIT
    

    This kills the entire process group when the main script exits, such as when it is killed by supervisord.

提交回复
热议问题