Skip to content

Instantly share code, notes, and snippets.

@stopdropandrew
Created June 1, 2010 23:17
Show Gist options
  • Save stopdropandrew/421674 to your computer and use it in GitHub Desktop.
Save stopdropandrew/421674 to your computer and use it in GitHub Desktop.
check process unicorn_worker_5000
with pidfile /var/run/unicorn/unicorn.5000.pid
start program = "/bin/true"
stop program = "/etc/init.d/unicorn kill_worker 5000"
if mem is greater than 300.0 MB for 1 cycles then restart
if cpu is greater than 80% for 3 cycles then restart
group unicorn_workers
@paulmakepeace
Copy link

/bin/true is the canonical no-op

@stopdropandrew
Copy link
Author

Changed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment