Created
December 16, 2016 21:17
-
-
Save preetampvp/a28d03b4274016cabc97a7f864168704 to your computer and use it in GitHub Desktop.
Upstart script for sidekiq - add to /etc/init
This file contains hidden or 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
| respawn | |
| respawn limit 15 5 | |
| start on runlevel [2345] | |
| stop on runlevel [06] | |
| script | |
| su - uid -c "cd <location> && bundle exec sidekiq" >> /var/log/sidekiq.log | |
| end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment