Skip to content

Instantly share code, notes, and snippets.

@xjunior
Created January 22, 2015 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xjunior/765ff75ff8af4391498c to your computer and use it in GitHub Desktop.
Save xjunior/765ff75ff8af4391498c to your computer and use it in GitHub Desktop.
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