From 38d4ebbac71aa0548ebd1d0d8ab677b7c5d6113e Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Wed, 3 Jun 2020 13:16:15 +0100 Subject: [PATCH] `synctl restart` should start synapse if it wasn't running (#7624) --- changelog.d/7624.bugfix | 1 + synctl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/7624.bugfix diff --git a/changelog.d/7624.bugfix b/changelog.d/7624.bugfix new file mode 100644 index 000000000..ce55b2cc3 --- /dev/null +++ b/changelog.d/7624.bugfix @@ -0,0 +1 @@ +Make `synctl restart` start synapse if it wasn't running. diff --git a/synctl b/synctl index 81e9bf6b5..960fd357e 100755 --- a/synctl +++ b/synctl @@ -328,7 +328,7 @@ def main(): if start_stop_synapse: if not stop(pidfile, "synapse.app.homeserver"): has_stopped = False - if not has_stopped: + if not has_stopped and action == "stop": sys.exit(1) # Wait for synapse to actually shutdown before starting it again