Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created May 21, 2012 21:55
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 grahamc/96512f0ef329d5b022e4 to your computer and use it in GitHub Desktop.
Save grahamc/96512f0ef329d5b022e4 to your computer and use it in GitHub Desktop.
#!upstart
description "A Single Integrity DJ Worker"
start on mysql
stop on mysql
chdir /var/lib/integrity/integrity
respawn
respawn limit 30 60
setuid integrity
setgid integrity
script
sleep 3
/var/lib/integrity/integrity/bin/rake jobs:work 2>&1 >> /var/log/integrity-worker.log
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment