Skip to content

Commit c0f6c32

Browse files
committed
Merge pull request resque#582 from twinturbo/resque
---
2 parents 1a48840 + 09fe7a7 commit c0f6c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/monit/resque.monit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
check process resque_worker_QUEUE
22
with pidfile /data/APP_NAME/current/tmp/pids/resque_worker_QUEUE.pid
3-
start program = "/usr/bin/env HOME=/home/user RACK_ENV=production PATH=/usr/local/bin:/usr/local/ruby/bin:/usr/bin:/bin:$PATH /bin/sh -l -c 'cd /data/APP_NAME/current; nohup bundle exec rake environment resque:work RAILS_ENV=production QUEUE=queue_name VERBOSE=1 PIDFILE=tmp/pids/resque_worker_QUEUE.pid & >> log/resque_worker_QUEUE.log 2>&1'" as uid deploy and gid deploy
3+
start program = "/usr/bin/env HOME=/home/user RACK_ENV=production PATH=/usr/local/bin:/usr/local/ruby/bin:/usr/bin:/bin:$PATH /bin/sh -l -c 'cd /data/APP_NAME/current; nohup bundle exec rake environment resque:work RAILS_ENV=production QUEUE=queue_name VERBOSE=1 PIDFILE=tmp/pids/resque_worker_QUEUE.pid >> log/resque_worker_QUEUE.log 2>&1'" as uid deploy and gid deploy
44
stop program = "/bin/sh -c 'cd /data/APP_NAME/current && kill -9 %(cat tmp/pids/resque_worker_QUEUE.pid) && rm -f tmp/pids/resque_worker_QUEUE.pid; exit 0;'"
55
if totalmem is greater than 300 MB for 10 cycles then restart # eating up memory?
66
group resque_workers

0 commit comments

Comments
 (0)