Created
September 27, 2008 15:43
-
-
Save edavis10/13346 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 projects_littlestreamsoftware_mongrel_12000 | |
with pidfile /home/websites/projects.littlestreamsoftware.com/shared/pids/mongrel.12000.pid | |
start program = "/usr/bin/mongrel_rails cluster::start -C /home/websites/projects.littlestreamsoftware.com/current/config/mongrel_cluster.yml --clean --only 12000" | |
stop program = "/usr/bin/mongrel_rails cluster::stop -C /home/websites/projects.littlestreamsoftware.com/current/config/mongrel_cluster.yml --only 12000" | |
if totalmem is greater than 90.0 MB for 4 cycles then restart | |
if cpu is greater than 80% for 4 cycles then restart | |
if 20 restarts within 20 cycles then timeout | |
group redmine | |
check process projects_littlestreamsoftware_mongrel_12001 | |
with pidfile /home/websites/projects.littlestreamsoftware.com/shared/pids/mongrel.12001.pid | |
start program = "/usr/bin/mongrel_rails cluster::start -C /home/websites/projects.littlestreamsoftware.com/current/config/mongrel_cluster.yml --clean --only 12001" | |
stop program = "/usr/bin/mongrel_rails cluster::stop -C /home/websites/projects.littlestreamsoftware.com/current/config/mongrel_cluster.yml --only 12001" | |
if totalmem is greater than 90.0 MB for 4 cycles then restart | |
if cpu is greater than 80% for 4 cycles then restart | |
if 20 restarts within 20 cycles then timeout | |
group redmine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment