Skip to content

Instantly share code, notes, and snippets.

@samgranieri
Created July 19, 2012 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samgranieri/3145177 to your computer and use it in GitHub Desktop.
Save samgranieri/3145177 to your computer and use it in GitHub Desktop.
this is what the last one compiles to
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