Skip to content

Instantly share code, notes, and snippets.

View dmin7b5's full-sized avatar

Jeff Owens dmin7b5

View GitHub Profile
@dmin7b5
dmin7b5 / keybase.md
Created December 2, 2016 16:21
keybase.md

Keybase proof

I hereby claim:

  • I am dmin7b5 on github.
  • I am jeffowens (https://keybase.io/jeffowens) on keybase.
  • I have a public key ASCc7-M5zragTi0DVxyHnRQowZ_a5QLAg4tvpdVxxTjbego

To claim this, I am signing this object:

check process resque_worker
with pidfile /home/USER_NAME/dp20/current/tmp/pids/resque_worker.pid
start program = "/usr/bin/env HOME=/home/USER_NAME RACK_ENV=production PATH=/usr/local/bin:/usr/local/ruby/bin:/usr/bin:/bin:$PATH /bin/sh -l -c 'cd /home/USER_NAME/dp20/current; nohup bundle exec rake environment resque:work RAILS_ENV=production QUEUES=record_event,update_counter_cache VERBOSE=1 PIDFILE=tmp/pids/resque_worker.pid & >> log/resque_worker.log 2>&1'" as uid USER_NAME and gid USER_NAME
stop program = "/bin/sh -c 'cd /home/USER_NAME/dp20/current && kill -9 $(cat tmp/pids/resque_worker.pid) && rm -f tmp/pids/resque_worker.pid; exit 0;'"
if totalmem is greater than 300 MB for 10 cycles then restart # eating up memory?
group resque_workers