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
Tatuya Kamada
gitlab-ce
Commits
883cb467
Commit
883cb467
authored
Sep 27, 2013
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5191 from jojosch/fix-check-script-sidekiq
[gitlab:check] Fix detecting the status of sidekiq
parents
72dd8011
b5d7bcb7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+1
-2
No files found.
lib/tasks/gitlab/check.rake
View file @
883cb467
...
@@ -663,7 +663,6 @@ namespace :gitlab do
...
@@ -663,7 +663,6 @@ namespace :gitlab do
else
else
puts
"
#{
sidekiq_match
.
length
}
"
.
red
puts
"
#{
sidekiq_match
.
length
}
"
.
red
try_fixing_it
(
try_fixing_it
(
'Unless you are running another Rails application on this server there should only be one Sidekiq process.'
,
'sudo service gitlab stop'
,
'sudo service gitlab stop'
,
'sudo pkill -f sidekiq'
,
'sudo pkill -f sidekiq'
,
'sleep 10 && sudo pkill -9 -f sidekiq'
,
'sleep 10 && sudo pkill -9 -f sidekiq'
,
...
@@ -674,7 +673,7 @@ namespace :gitlab do
...
@@ -674,7 +673,7 @@ namespace :gitlab do
end
end
def
sidekiq_process_match
def
sidekiq_process_match
run_and_match
(
"ps
a
ux | grep -i sidekiq"
,
/(sidekiq \d+\.\d+\.\d+.+$)/
)
run_and_match
(
"ps ux | grep -i sidekiq"
,
/(sidekiq \d+\.\d+\.\d+.+$)/
)
end
end
end
end
...
...
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