Created
July 19, 2012 16:38
-
-
Save samgranieri/3145177 to your computer and use it in GitHub Desktop.
this is what the last one compiles to
This file contains hidden or 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 resque_pool | |
with pidfile /var/www/app/shared/pids/resque_pool.pid | |
start program = "/usr/bin/env PATH=/usr/local/bin:$PATH rvm_path=/home/rails/.rvm /home/rails/.rvm/bin/rvm-shell -c 'cd /var/www/app/current && bundle exec resque-pool -E qa -p /var/www/app/shared/pids/resque_pool.pid -o /var/www/app/shared/log/resque_pool.log -e /var/www/app/shared/log/resque_pool.log -d'" as uid rails and gid rails with timeout 90 seconds | |
stop program = "/usr/bin/env PATH=/usr/local/bin:$PATH rvm_path=/home/rails/.rvm /home/rails/.rvm/bin/rvm-shell -c 'cd /var/www/app/current && cat /var/www/app/shared/pids/resque_pool.pid | xargs kill -QUIT && rm -f /var/www/app/shared/pids/resque_pool.pid; exit 0;'" as uid rails and gid rails with timeout 90 seconds | |
if totalmem is greater than 450 MB for 10 cycles then restart | |
group resque |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment