Permalink
Browse files

Fix sidekiq chech and added script/check

  • Loading branch information...
1 parent 16b6159 commit 6869a5640347bb391aea657c763716f27dea380e @randx randx committed Jan 9, 2013
Showing with 3 additions and 1 deletion.
  1. +1 −1 lib/tasks/gitlab/check.rake
  2. +2 −0 script/check
@@ -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
View
@@ -0,0 +1,2 @@
+#!/bin/sh
+sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production

1 comment on commit 6869a56

mkfs commented on 6869a56 Jun 6, 2013

This seems to break on sidekiq >= 2.10 . Better replace each \d with \d+.

Please sign in to comment.