Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

restart-server: Fix comment to be sensical.

Alex Vandiver970ff73c5f0a
diff --git a/scripts/restart-server b/scripts/restart-server
index ee2e63120cd..45760e0763c 100755
--- a/scripts/restart-server
+++ b/scripts/restart-server
@@ -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()