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:
commit
13650ea90e
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue