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.

start-server: Start auxiliary services, if they exist.

Alex Vandiver2066860ab60d
diff --git a/scripts/restart-server b/scripts/restart-server
index 4093d2e463d..0f9c05cc002 100755
--- a/scripts/restart-server
+++ b/scripts/restart-server
@@ -91,6 +91,13 @@ if has_application_server():
if has_process_fts_updates():
workers.append("process-fts-updates")
+# Before we start (re)starting main services, make sure to start any
+# optional auxiliary services that we don't stop, but do expect to be
+# running, and aren't currently.
+aux_services = list_supervisor_processes(["go-camo", "smokescreen"], only_running=False)
+if aux_services:
+ subprocess.check_call(["supervisorctl", "start", *aux_services])
+
if action == "restart" and len(workers) > 0:
if args.less_graceful:
# The less graceful form stops every worker now; we start them