-
-
Save phongnh/b8c93e308952801c6f423743d09519d0 to your computer and use it in GitHub Desktop.
Upstart delayed_job script
This file contains hidden or 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