summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-09 20:31:05 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-09 20:31:05 +0200
commit6869a5640347bb391aea657c763716f27dea380e (patch)
tree3ea350146c4cc60c6870ba983a036f6450a8ed62
parent16b61590ab4ca046ea7a2dbab3703367df56d108 (diff)
downloadgitlab-ce-6869a5640347bb391aea657c763716f27dea380e.tar.gz
Fix sidekiq chech and added script/check
-rw-r--r--lib/tasks/gitlab/check.rake2
-rwxr-xr-xscript/check2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
index db181cb9a96..5d850a17fe3 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 00000000000..d2eb4a2f6d8
--- /dev/null
+++ b/script/check
@@ -0,0 +1,2 @@
+#!/bin/sh
+sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production