mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +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":
|
elif action == "start":
|
||||||
existing_services = list_supervisor_processes(check_services)
|
existing_services = list_supervisor_processes(check_services)
|
||||||
if existing_services == running_services:
|
if existing_services == running_services:
|
||||||
# Check if the version we're trying to start is the version
|
# Check if the version that is currently running is the
|
||||||
# that we would have started. We do this via checking the CWD
|
# version that we would have started. We do this via
|
||||||
# of the oldest uwsgi worker.
|
# comparing our CWD to the CWD of the oldest uwsgi worker.
|
||||||
oldest_pid = subprocess.check_output(
|
oldest_pid = subprocess.check_output(
|
||||||
["pgrep", "--oldest", "--full", "zulip-django uWSGI worker"], text=True
|
["pgrep", "--oldest", "--full", "zulip-django uWSGI worker"], text=True
|
||||||
).strip()
|
).strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user