mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
restart-server: Fix comment to be sensical.
This commit is contained in:
committed by
Tim Abbott
parent
9b1b52ec8a
commit
970ff73c5f
@@ -145,9 +145,9 @@ if action == "restart" and len(running_services) == 0:
|
||||
elif action == "start":
|
||||
existing_services = list_supervisor_processes(check_services)
|
||||
if existing_services == running_services:
|
||||
# Check if the version we're trying to start is the version
|
||||
# that we would have started. We do this via checking the CWD
|
||||
# of the oldest uwsgi worker.
|
||||
# Check if the version that is currently running is the
|
||||
# version that we would have started. We do this via
|
||||
# comparing our CWD to the CWD of the oldest uwsgi worker.
|
||||
oldest_pid = subprocess.check_output(
|
||||
["pgrep", "--oldest", "--full", "zulip-django uWSGI worker"], text=True
|
||||
).strip()
|
||||
|
Reference in New Issue
Block a user