-
-
Save xjunior/765ff75ff8af4391498c to your computer and use it in GitHub Desktop.
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
description "HPB Ecommerce" | |
# automatically start | |
start on filesystem | |
stop on shutdown | |
setuid hpb | |
setgid hpb | |
respawn | |
expect daemon | |
normal exit 0 TERM | |
# working directory | |
chdir /home/hpb/app/current | |
script | |
SIDEKIQ_PID="/home/hpb/app/shared/tmp/pids/sidekiq.pid" | |
SIDEKIQ_LOG="/home/hpb/app/shared/log/sidekiq.log" | |
RAILS_ENV="staging" | |
/home/hpb/.rbenv/shims/bundle exec sidekiq -r./sidekiq_loader.rb -e "$RAILS_ENV" -P "$SIDEKIQ_PID" -d -L "$SIDEKIQ_LOG" -q critical,2 -q default | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment