Create a gist now

Instantly share code, notes, and snippets.

@grahamc /worker.erb Secret
Created May 21, 2012

What would you like to do?
#!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