From 7e43f70ff498412ed8e486ae5682bea12f619375 Mon Sep 17 00:00:00 2001 From: Maksym Pugach Date: Wed, 8 Jul 2015 15:21:02 +0300 Subject: [PATCH] shutdown all upstart instances on workers stop --- examples/upstart/manage-one/workers.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/upstart/manage-one/workers.conf b/examples/upstart/manage-one/workers.conf index 0e606e3e..bf93a288 100644 --- a/examples/upstart/manage-one/workers.conf +++ b/examples/upstart/manage-one/workers.conf @@ -28,3 +28,10 @@ pre-start script start sidekiq index=$i done end script + +post-stop script + for i in `seq 1 ${NUM_WORKERS}` + do + stop sidekiq index=$i + done +end script