diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake index db181cb9..5d850a17 100644 --- a/lib/tasks/gitlab/check.rake +++ b/lib/tasks/gitlab/check.rake @@ -888,7 +888,7 @@ namespace :gitlab do def check_resque_running print "Running? ... " - if run_and_match("ps aux | grep -i sidekiq", /sidekiq-[\d\.]+:.+$/) + if run_and_match("ps aux | grep -i sidekiq", /sidekiq \d\.\d\.\d.+$/) puts "yes".green else puts "no".red diff --git a/script/check b/script/check new file mode 100755 index 00000000..d2eb4a2f --- /dev/null +++ b/script/check @@ -0,0 +1,2 @@ +#!/bin/sh +sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production