Commit 6869a5640347bb391aea657c763716f27dea380e

Authored by Dmitriy Zaporozhets
1 parent 16b61590

Fix sidekiq chech and added script/check

Showing 2 changed files with 3 additions and 1 deletions   Show diff stats
lib/tasks/gitlab/check.rake
@@ -888,7 +888,7 @@ namespace :gitlab do @@ -888,7 +888,7 @@ namespace :gitlab do
888 def check_resque_running 888 def check_resque_running
889 print "Running? ... " 889 print "Running? ... "
890 890
891 - if run_and_match("ps aux | grep -i sidekiq", /sidekiq-[\d\.]+:.+$/) 891 + if run_and_match("ps aux | grep -i sidekiq", /sidekiq \d\.\d\.\d.+$/)
892 puts "yes".green 892 puts "yes".green
893 else 893 else
894 puts "no".red 894 puts "no".red
script/check 0 → 100755
@@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
  1 +#!/bin/sh
  2 +sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production