From 6869a5640347bb391aea657c763716f27dea380e Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 9 Jan 2013 20:31:05 +0200 Subject: [PATCH] Fix sidekiq chech and added script/check --- lib/tasks/gitlab/check.rake | 2 +- script/check | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 script/check 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