Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
b6c544372b41
Commit
41ed60c2
authored
Aug 20, 2015
by
Douwe Maan
Browse files
Fix MailRoom running check.
parent
5aada4e97220
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/tasks/gitlab/check.rake
View file @
b6c54437
...
...
@@ -645,7 +645,7 @@ namespace :gitlab do
return
end
if
mail_room_
process_count
>
0
if
mail_room_
running?
puts
"yes"
.
green
else
puts
"no"
.
red
...
...
@@ -716,9 +716,9 @@ namespace :gitlab do
end
end
def
mail_room_
process_count
def
mail_room_
running?
ps_ux
,
_
=
Gitlab
::
Popen
.
popen
(
%W(ps ux)
)
ps_ux
.
scan
(
/mail_room \d+\.\d+\.\d+/
).
count
ps_ux
.
include?
(
"mail_room"
)
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