Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save suz-lab/3c504975916921b45fca to your computer and use it in GitHub Desktop.
Save suz-lab/3c504975916921b45fca to your computer and use it in GitHub Desktop.
check process sleep with pidfile /var/run/sleep.pid
start program "/etc/init.d/sleep start" with timeout 60 seconds
stop program "/etc/init.d/sleep stop"
if 5 restarts within 5 cycles then unmonitor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment