Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
7cd03836
Commit
7cd03836
authored
Jan 10, 2013
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sidekiq check task
parent
4eac403e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+7
-9
No files found.
lib/tasks/gitlab/check.rake
View file @
7cd03836
...
@@ -2,7 +2,7 @@ namespace :gitlab do
...
@@ -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}
...
@@ -870,22 +870,22 @@ namespace :gitlab do
...
@@ -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.+$/
)
...
@@ -893,9 +893,7 @@ namespace :gitlab do
...
@@ -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"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment