Skip to content

Instantly share code, notes, and snippets.

@preetampvp
Created December 16, 2016 21:17
Show Gist options
  • Select an option

  • Save preetampvp/a28d03b4274016cabc97a7f864168704 to your computer and use it in GitHub Desktop.

Select an option

Save preetampvp/a28d03b4274016cabc97a7f864168704 to your computer and use it in GitHub Desktop.
Upstart script for sidekiq - add to /etc/init
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