Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
restart-server: Treat as a start if nothing is running.
Alex Vandiver39286068865e
diff --git a/scripts/restart-server b/scripts/restart-serverindex 00f5c61f6e6..673e642dd9c 100755--- a/scripts/restart-server+++ b/scripts/restart-server@@ -98,6 +98,19 @@ aux_services = list_supervisor_processes(["go-camo", "smokescreen"], only_runninif aux_services:subprocess.check_call(["supervisorctl", "start", *aux_services])+# If none of the workers nor the application servers are running, this+# is actually a "start," not a restart, which means we will defer+# workers to later.+if (+ action == "restart"+ and len(+ list_supervisor_processes(workers + ["zulip-django", "zulip-tornado:*"], only_running=True)+ )+ == 0+):+ action = "start"+ verbing = "Starting"+def restart_or_start(service: str) -> None:our_verb = action