# HG changeset patch # User Marcin Kuzminski # Date 2017-10-11 12:48:23 # Node ID 5bbfeee444fcce501c493683dd7e1d93ddaedd70 # Parent e4d38834b497304490d82359392097b52e0a07ad processes: use better naming detection of running children processes diff --git a/rhodecode/templates/admin/settings/settings_process_management.mako b/rhodecode/templates/admin/settings/settings_process_management.mako --- a/rhodecode/templates/admin/settings/settings_process_management.mako +++ b/rhodecode/templates/admin/settings/settings_process_management.mako @@ -12,7 +12,8 @@

List of Gunicorn processes on this machine

<% - def get_name(proc, cmd): + def get_name(proc): + cmd = ' '.join(proc.cmdline()) if 'vcsserver.ini' in cmd: return 'VCSServer' elif 'rhodecode.ini' in cmd: @@ -23,19 +24,18 @@ % for proc in c.gunicorn_processes: <% mem = proc.memory_info()%> <% children = proc.children(recursive=True) %> - <% cmd = ' '.join(proc.cmdline()) %> % if children: - ${proc.pid} - ${get_name(proc, cmd)} + ${proc.pid} - ${get_name(proc)} command @@ -55,7 +55,7 @@ - | ${proc_child.pid} - ${proc_child.name()} + | ${proc_child.pid} - ${get_name(proc_child)}