Skip to content

Instantly share code, notes, and snippets.

@sinefunc
Created August 14, 2010 15:30
Show Gist options
  • Save sinefunc/524408 to your computer and use it in GitHub Desktop.
Save sinefunc/524408 to your computer and use it in GitHub Desktop.
check process redis
with pidfile /home/leafpile/app/db/redis/production/redis.pid
start program = "/opt/redis/bin/redis-server /home/leafpile/app/config/redis/production.conf"
as uid leafpile and gid leafpile
stop program = "/opt/redis/bin/redis-cli -p 22222 shutdown"
as uid leafpile and gid leafpile
if failed host 127.0.0.1 port 22222 then restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment