Skip to content

Instantly share code, notes, and snippets.

@RabeaWahab
Created January 5, 2015 02:37
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 RabeaWahab/d4b039e992ab1364e7ca to your computer and use it in GitHub Desktop.
Save RabeaWahab/d4b039e992ab1364e7ca to your computer and use it in GitHub Desktop.
check process redis with pidfile /var/run/redis/redis.pid
start program = “/etc/init.d/redis start”
stop program = “/etc/init.d/redis stop”
if failed host 127.0.0.1 port 6379 then restart
if 5 restarts within 5 cycles then alert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment