Skip to content

Commit

Permalink
Merge pull request sidekiq#2425 from mpugach/shutdown_upstart_manage-one
Browse files Browse the repository at this point in the history
shutdown all upstart instances on 'stop workers'
  • Loading branch information
seuros committed Jul 8, 2015
2 parents 5adbc24 + 7e43f70 commit 0e14b39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/upstart/manage-one/workers.conf
Expand Up @@ -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

0 comments on commit 0e14b39

Please sign in to comment.