2

Is there a way to restart sidekiq automatically if it gets killed because of some issue on the server - may me memory etc.

right now i have to login to the server command line and run something like

bundle exec sidekiq -d -P tmp/sidekiq.pid -L log/sidekiq.log 
Harsha M V
  • 54,075
  • 125
  • 354
  • 529

1 Answers1

5

In the Sidekiq wiki, there is a section about deployment, including upstart and systemd scripts. You can use those to ensure the process restarts appropriately.

Daniel Westendorf
  • 3,375
  • 18
  • 23
  • thank you will check it out. Even though it speaks about when we push the deployment. I am sure we can figure how to monitor if sidekiq has gone numb. – Harsha M V Nov 03 '17 at 05:11