Harsha M V
Harsha M V

Reputation: 54949

Restart Sidekiq If it fails

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 

Upvotes: 2

Views: 2585

Answers (1)

Daniel Westendorf
Daniel Westendorf

Reputation: 3465

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.

Upvotes: 5

Related Questions