Skip to content

Instantly share code, notes, and snippets.

@masuidrive
Created February 27, 2011 09:44
Show Gist options
  • Save masuidrive/846055 to your computer and use it in GitHub Desktop.
Save masuidrive/846055 to your computer and use it in GitHub Desktop.
redisの起動スクリプト
check process redis
with pidfile /var/run/redis.pid
start program = "/usr/local/bin/redis-server /mnt/app/current/config/redis.conf"
stop program = "/bin/echo SHUTDOWN | nc localhost 6379"
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