Restarting Upstart instance processes

后端 未结 4 1314
攒了一身酷
攒了一身酷 2020-12-23 07:32

I am running multiple instances of a worker as described in this answer: Starting multiple upstart instances automatically

Question: Can I restart all instan

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-23 08:11

    Consider adding to the worker.conf one more event:

    stop on shutdown or workers-stop
    

    Then you can call from the command line

    sudo initctl emit workers-stop
    

    You can add similar event to start workers. To achieve restarting all workers create a task that will emit workers-stop and then workers-start events.

提交回复
热议问题