Skip to content

Instantly share code, notes, and snippets.

@durran
Created December 1, 2011 14:11
Show Gist options
  • Save durran/1417003 to your computer and use it in GitHub Desktop.
Save durran/1417003 to your computer and use it in GitHub Desktop.
Redis Monit Config
check process redis
with pidfile /var/run/redis.pid
start program = "/etc/init.d/redis-server start"
stop program = "/etc/init.d/redis-server stop"
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