Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
supervisor: Use more specific process_name than "port-9800".
Alex Vandiverefdaa58c244c
diff --git a/puppet/zulip/templates/supervisor/zulip.conf.template.erb b/puppet/zulip/templates/supervisor/zulip.conf.template.erbindex 1e0500b7859..fbbdae4aefd 100644--- a/puppet/zulip/templates/supervisor/zulip.conf.template.erb+++ b/puppet/zulip/templates/supervisor/zulip.conf.template.erb@@ -26,7 +26,7 @@ directory=/home/zulip/deployments/current/<% if @tornado_multiprocess -%>[program:zulip-tornado]command=env PYTHONUNBUFFERED=1 /home/zulip/deployments/current/manage.py runtornado 127.0.0.1:98%(process_num)02d-process_name=port-98%(process_num)02d+process_name=zulip-tornado-port-98%(process_num)02dpriority=200 ; the relative start priority (default 999)autostart=true ; start at supervisord start (default: true)autorestart=true ; whether/when to restart (default: unexpected)diff --git a/scripts/restart-server b/scripts/restart-serverindex 7d88811aa5d..6b318fa1aa0 100755--- a/scripts/restart-server+++ b/scripts/restart-server@@ -66,7 +66,7 @@ if tornado_processes > 1:# supervisord group where if any individual process is slow to# stop, the whole bundle stays stopped for an extended time.logging.info("Restarting Tornado process on port %s", p)- subprocess.check_call(["supervisorctl", "restart", f"zulip-tornado:port-{p}"])+ subprocess.check_call(["supervisorctl", "restart", f"zulip-tornado:zulip-tornado-port-{p}"])else:logging.info("Restarting Tornado process")subprocess.check_call(["supervisorctl", "restart", "zulip-tornado", "zulip-tornado:*"])