| 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