Merge "Add respawn limit to prevent infinite respawn."

This commit is contained in:
Jenkins 2013-05-21 02:41:24 +00:00 committed by Gerrit Code Review
commit 6d1c130f88
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,9 @@ pre-start script
end script
respawn
# the default post-start of 1 second sleep delays respawning enough to
# not hit the default of 10 times in 5 seconds. Make it 2 times in 5s.
respawn limit 2 5
exec start-stop-daemon --start -c $user --exec /opt/stack/venvs/$user/bin/$cmd -- $args