OSDN Git Service

Fix sidekiq chech and added script/check
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Wed, 9 Jan 2013 18:31:05 +0000 (20:31 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Wed, 9 Jan 2013 18:31:05 +0000 (20:31 +0200)
lib/tasks/gitlab/check.rake
script/check [new file with mode: 0755]

index db181cb..5d850a1 100644 (file)
@@ -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 (executable)
index 0000000..d2eb4a2
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production