Created
March 26, 2012 05:22
-
-
Save sasha-id/2203158 to your computer and use it in GitHub Desktop.
Upstart delayed_job script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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