We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following code, I want to make sidekiq restart when I start rails.
log_file=Rails.root.join('log/sidekiq.log') pid_file=Rails.root.join('tmp/pids/sidekiq.pid') controller = DaemonController.new( :identifier => 'Sidekiq daemon', :start_command => "sidekiq -e #{Rails.env} -q default -L #{log_file} -d -P #{pid_file}", :ping_command => "kill -0 `cat #{pid_file}`", :pid_file => "#{pid_file}", :log_file => "#{log_file}", :start_timeout => 25) begin controller.restart rescue DaemonController::AlreadyStarted end
But, ping_command seem like not worked, because controller.restart is invalid for me. it never start sidekiq.
controller.restart
But, if change to controller.start, it worked.
controller.start
The text was updated successfully, but these errors were encountered:
This project is dead.
Sorry, something went wrong.
No branches or pull requests
Following code, I want to make sidekiq restart when I start rails.
But, ping_command seem like not worked, because
controller.restart
is invalid for me. it never start sidekiq.
But, if change to
controller.start
, it worked.The text was updated successfully, but these errors were encountered: