Skip to content

Instantly share code, notes, and snippets.

@sasha-id
Created March 26, 2012 05:22
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save sasha-id/2203158 to your computer and use it in GitHub Desktop.
Save sasha-id/2203158 to your computer and use it in GitHub Desktop.
Upstart delayed_job script
# 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