Commit 883cb467 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Merge pull request #5191 from jojosch/fix-check-script-sidekiq

[gitlab:check] Fix detecting the status of sidekiq
parents 72dd8011 b5d7bcb7
......@@ -663,7 +663,6 @@ namespace :gitlab do
else
puts "#{sidekiq_match.length}".red
try_fixing_it(
'Unless you are running another Rails application on this server there should only be one Sidekiq process.',
'sudo service gitlab stop',
'sudo pkill -f sidekiq',
'sleep 10 && sudo pkill -9 -f sidekiq',
......@@ -674,7 +673,7 @@ namespace :gitlab do
end
def sidekiq_process_match
run_and_match("ps aux | grep -i sidekiq", /(sidekiq \d+\.\d+\.\d+.+$)/)
run_and_match("ps ux | grep -i sidekiq", /(sidekiq \d+\.\d+\.\d+.+$)/)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment