upgrade: Stop in the same order as restart-server.

restart-server explicitly stops the workers first, then the core
services.  Keep that ordering consistently.
This commit is contained in:
Alex Vandiver
2020-09-09 14:12:18 -07:00
committed by Tim Abbott
parent dc58dec231
commit dd68cc98fd

View File

@@ -104,7 +104,7 @@ def shutdown_server() -> None:
core_server_services.append("zulip-thumbor")
logging.info("Stopping Zulip...")
subprocess.check_call(["supervisorctl", "stop", *core_server_services, *worker_services],
subprocess.check_call(["supervisorctl", "stop", *worker_services, *core_server_services],
preexec_fn=su_to_zulip)
IS_SERVER_UP = False