Skip to content

Instantly share code, notes, and snippets.

@brendon
Last active January 2, 2016 16:49
Show Gist options
  • Save brendon/8332688 to your computer and use it in GitHub Desktop.
Save brendon/8332688 to your computer and use it in GitHub Desktop.
delayed_job upstart configuration (No Hacks) - Ubuntu 12.04 LTE
description "Delayed Job Server"
author "Brendon Muir"
setuid www-data
setgid www-data
start on started mysql
stop on stopping mysql
respawn
chdir /path/to/your/app/current
env RAILS_ENV=production
nice 15
exec /opt/ruby-enterprise/bin/ruby script/delayed_job run >> /path/to/your/app/shared/log/delayed_job.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment