Skip to content

Instantly share code, notes, and snippets.

@jgeiger
Forked from cyx/gist:3690597
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgeiger/d123f967a95d55f699e4 to your computer and use it in GitHub Desktop.
Save jgeiger/d123f967a95d55f699e4 to your computer and use it in GitHub Desktop.
Redis server monit config for upstart
check process redis-server
with pidfile "/var/run/redis.pid"
start program = "/sbin/start redis-server"
stop program = "/sbin/stop redis-server"
if 2 restarts within 3 cycles then timeout
if failed host 127.0.0.1 port 6379 then restart
if 5 restarts within 5 cycles then timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment