Fix sidekiq chech and added script/check

This commit is contained in:
Dmitriy Zaporozhets 2013-01-09 20:31:05 +02:00
parent 16b61590ab
commit 6869a56403
2 changed files with 3 additions and 1 deletions

View 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

2
script/check Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production