Created
June 1, 2010 23:17
-
-
Save stopdropandrew/421674 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/bin/true is the canonical no-op