Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2013-01-10 03:08:15 +0400
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2013-01-10 03:09:09 +0400
commit7cd03836e55f842fd518b4637c19235ee8701f17 (patch)
treef7430a27e41ef898c8ba5e150a3584a617713c97 /lib
parent4eac403e3b3a32188c48d006e431ee838cd5c3dc (diff)
Fix sidekiq check task
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/gitlab/check.rake16
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
index 5d850a17fe3..665973e2303 100644
--- a/lib/tasks/gitlab/check.rake
+++ b/lib/tasks/gitlab/check.rake
@@ -2,7 +2,7 @@ namespace :gitlab do
desc "GITLAB | Check the configuration of GitLab and its environment"
task check: %w{gitlab:env:check
gitlab:gitolite:check
- gitlab:resque:check
+ gitlab:sidekiq:check
gitlab:app:check}
@@ -870,22 +870,22 @@ namespace :gitlab do
- namespace :resque do
+ namespace :sidekiq do
desc "GITLAB | Check the configuration of Sidekiq"
task check: :environment do
warn_user_is_not_gitlab
- start_checking "Resque"
+ start_checking "Sidekiq"
- check_resque_running
+ check_sidekiq_running
- finished_checking "Resque"
+ finished_checking "Sidekiq"
end
# Checks
########################
- def check_resque_running
+ def check_sidekiq_running
print "Running? ... "
if run_and_match("ps aux | grep -i sidekiq", /sidekiq \d\.\d\.\d.+$/)
@@ -893,9 +893,7 @@ namespace :gitlab do
else
puts "no".red
try_fixing_it(
- "sudo service gitlab restart",
- "or",
- "sudo /etc/init.d/gitlab restart"
+ "sudo -u gitlab -H bundle exec rake sidekiq:start"
)
for_more_information(
see_installation_guide_section("Install Init Script"),