Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /etc/init/sidekiq.conf - Sidekiq config
- # Save this config as /etc/init/sidekiq.conf then mange sidekiq with:
- # sudo start sidekiq
- # sudo stop sidekiq
- # sudo status sidekiq
- description "Sidekiq Background Worker"
- stop on (stopping workers or runlevel [06])
- # change to match your deployment user
- setuid web
- setgid web
- env HOME=/home/web
- respawn
- respawn limit 3 30
- normal exit 0 TERM
- script
- # this script runs in /bin/sh by default
- # respawn as bash so we can source in RVM
- exec /bin/bash <<'EOT'
- source ~/.rvm/scripts/rvm
- cd /home/web/www/Take.fm/current
- exec sidekiq -e production -C config/sidekiq.yml
- EOT
- end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement