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
d3450ad2
Commit
d3450ad2
authored
Oct 04, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'improve_sidekiq_check' of /home/git/repositories/gitlab/gitlabhq
parents
0223597a
4017789f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+6
-4
No files found.
lib/tasks/gitlab/check.rake
View file @
d3450ad2
...
...
@@ -289,7 +289,6 @@ namespace :gitlab do
########################
def
check_gitlab_git_config
gitlab_user
=
Gitlab
.
config
.
gitlab
.
user
print
"Git configured for
#{
gitlab_user
}
user? ... "
options
=
{
...
...
@@ -664,8 +663,8 @@ namespace :gitlab do
puts
"
#{
sidekiq_match
.
length
}
"
.
red
try_fixing_it
(
'sudo service gitlab stop'
,
'sudo pkill -f sidekiq'
,
'sleep 10 && sudo pkill -9 -f sidekiq'
,
"sudo pkill -u
#{
gitlab_user
}
-f sidekiq"
,
"sleep 10 && sudo pkill -9 -u
#{
gitlab_user
}
-f sidekiq"
,
'sudo service gitlab start'
)
fix_and_rerun
...
...
@@ -709,10 +708,13 @@ namespace :gitlab do
end
def
sudo_gitlab
(
command
)
gitlab_user
=
Gitlab
.
config
.
gitlab
.
user
"sudo -u
#{
gitlab_user
}
-H
#{
command
}
"
end
def
gitlab_user
Gitlab
.
config
.
gitlab
.
user
end
def
start_checking
(
component
)
puts
"Checking
#{
component
.
yellow
}
..."
puts
""
...
...
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