Skip to content
Snippets Groups Projects
Commit 41ed60c2 authored by Douwe Maan's avatar Douwe Maan
Browse files

Fix MailRoom running check.

parent 02b7be4a
Branches
Tags
1 merge request!1173Reply by email
Pipeline #
Loading
Loading
@@ -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
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment