Skip to content

Instantly share code, notes, and snippets.

@ideaoforder
Created August 21, 2009 17:32
Show Gist options
  • Save ideaoforder/172211 to your computer and use it in GitHub Desktop.
Save ideaoforder/172211 to your computer and use it in GitHub Desktop.
check process workling0 with pidfile YOUR_WEB_APP/log/workling0.pid
group YOUR_APP_NAME
start program = "/home/YOUR_USER/scripts/workling start 0"
stop program = "/home/YOUR_USER/scripts/workling stop 0"
if totalmem > 60 Mb then restart
if cpu is greater than 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then restart
if loadavg(5min) greater than 10 for 8 cycles then restart
if 3 restarts within 5 cycles then timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment