supervisord stopping child processes

后端 未结 6 2059
隐瞒了意图╮
隐瞒了意图╮ 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:52

    The same problem was encountered by Rick Hanlon II here: https://coderwall.com/p/4tcw7w

    Option stopasgroup=true should be set in the program section for supervisord to stop not only the parent process but also the child processes.

    The example is given as:

    [program:some_django]
     command=python manage.py runserver
     directory=/dir/to/app
     stopasgroup=true
    

    Also, have in mind that you may have an older package of supervisord that does not have "stopasgroup" functionality. I tried these Debian packages on Raspberry Pi:

    • supervisor_3.0a8 does not work.
    • supervisor_3.0b2-1 works as expected.

提交回复
热议问题