Skip to content

Commit

Permalink
respawn limit
Browse files Browse the repository at this point in the history
  • Loading branch information
gerhard committed Nov 25, 2011
1 parent ddf98d8 commit 88f81c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions templates/default/redis.upstart.erb
Expand Up @@ -3,9 +3,11 @@

description "redis"

start on runlevel [23]
stop on shutdown
start on runlevel [2345]
stop on [!2345]

respawn
respawn limit 10 5

exec sudo -u redis /usr/local/bin/redis-server <%= node[:redis][:config] %>

respawn

0 comments on commit 88f81c3

Please sign in to comment.