For stopping have each worker listening on an event:
stop on shutdown or workers-stop
And then, when you want to shutdown your workers you just emit that event.
initctl emit workers-stop
For stopping have each worker listening on an event:
stop on shutdown or workers-stop
And then, when you want to shutdown your workers you just emit that event.
initctl emit workers-stop