1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Merge pull request #1227 from augustj/upstart-normal-exit

Added comments in upstart sidekiq.conf files about normal exit codes to avoid unintentional respawns
This commit is contained in:
Mike Perham 2013-10-13 16:18:13 -07:00
commit 13650ea90e
2 changed files with 6 additions and 0 deletions

View file

@ -27,6 +27,9 @@ stop on (stopping sidekiq-manager or runlevel [06])
respawn
respawn limit 3 30
# TERM and USR1 are sent by sidekiqctl when stopping sidekiq. Without declaring these as normal exit codes, it just respawns.
normal exit 0 TERM USR1
instance ${app}-${index}
script

View file

@ -27,6 +27,9 @@ setgid deploy
respawn
respawn limit 3 30
# TERM and USR1 are sent by sidekiqctl when stopping sidekiq. Without declaring these as normal exit codes, it just respawns.
normal exit 0 TERM USR1
instance $index
script