Skip to content

Instantly share code, notes, and snippets.

@ciastek
Created March 6, 2014 13:11
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 ciastek/9389264 to your computer and use it in GitHub Desktop.
Save ciastek/9389264 to your computer and use it in GitHub Desktop.
delayed_job + upstart
description "Start up app's delayed_job"
start on runlevel [2345]
stop on runlevel [06]
script
exec sudo -u rate bash -c 'export RAILS_ENV=production && cd /var/www/app/current && ./script/delayed_job start'
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment