delayed_job upstart script
Most scripts out there start but do not stop. This is because delayed_job script uses demonize.
The solution is to use the command "run" instead of "start".
# Copy:
# /etc/init/delayed_job.conf
# Execute:
# 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 /SITE/current/bin/delayed_job run
end script
Written by Jorge Gonzales
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Delayed_job
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#