Skip to content
Snippets Groups Projects
Commit 7cd03836 authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Fix sidekiq check task

parent 4eac403e
No related branches found
No related tags found
No related merge requests found
Loading
@@ -2,7 +2,7 @@ namespace :gitlab do
Loading
@@ -2,7 +2,7 @@ namespace :gitlab do
desc "GITLAB | Check the configuration of GitLab and its environment" desc "GITLAB | Check the configuration of GitLab and its environment"
task check: %w{gitlab:env:check task check: %w{gitlab:env:check
gitlab:gitolite:check gitlab:gitolite:check
gitlab:resque:check gitlab:sidekiq:check
gitlab:app:check} gitlab:app:check}
   
   
Loading
@@ -870,22 +870,22 @@ namespace :gitlab do
Loading
@@ -870,22 +870,22 @@ namespace :gitlab do
   
   
   
namespace :resque do namespace :sidekiq do
desc "GITLAB | Check the configuration of Sidekiq" desc "GITLAB | Check the configuration of Sidekiq"
task check: :environment do task check: :environment do
warn_user_is_not_gitlab warn_user_is_not_gitlab
start_checking "Resque" start_checking "Sidekiq"
   
check_resque_running check_sidekiq_running
   
finished_checking "Resque" finished_checking "Sidekiq"
end end
   
   
# Checks # Checks
######################## ########################
   
def check_resque_running def check_sidekiq_running
print "Running? ... " print "Running? ... "
   
if run_and_match("ps aux | grep -i sidekiq", /sidekiq \d\.\d\.\d.+$/) if run_and_match("ps aux | grep -i sidekiq", /sidekiq \d\.\d\.\d.+$/)
Loading
@@ -893,9 +893,7 @@ namespace :gitlab do
Loading
@@ -893,9 +893,7 @@ namespace :gitlab do
else else
puts "no".red puts "no".red
try_fixing_it( try_fixing_it(
"sudo service gitlab restart", "sudo -u gitlab -H bundle exec rake sidekiq:start"
"or",
"sudo /etc/init.d/gitlab restart"
) )
for_more_information( for_more_information(
see_installation_guide_section("Install Init Script"), see_installation_guide_section("Install Init Script"),
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment