Skip to content

Instantly share code, notes, and snippets.

@mbursi
Forked from sasha-id/delayed_job.conf
Created October 10, 2013 09:10
Show Gist options
  • Save mbursi/6915405 to your computer and use it in GitHub Desktop.
Save mbursi/6915405 to your computer and use it in GitHub Desktop.
# Copy:
# /etc/init/delayed_job.conf
# Execute:
# ln -s /lib/init/upstart-job /etc/init.d/delayed_job
# Change user name
description "Start up the delayed_job service"
start on runlevel [2345]
stop on runlevel [06]
script
exec sudo RAILS_ENV=production -u USERNAME -i rvm 1.9.3 do ruby /u/apps/csads/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