summary refs log tree commit diff
path: root/synctl
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-06-03 13:16:15 +0100
committerGitHub <noreply@github.com>2020-06-03 13:16:15 +0100
commit38d4ebbac71aa0548ebd1d0d8ab677b7c5d6113e (patch)
treef16a79472290cefaeee5d8fdf7d2adfa64532e50 /synctl
parentSwitch back to upstream dh-virtualenv (#7621) (diff)
downloadsynapse-38d4ebbac71aa0548ebd1d0d8ab677b7c5d6113e.tar.xz
`synctl restart` should start synapse if it wasn't running (#7624)
Diffstat (limited to 'synctl')
-rwxr-xr-xsynctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/synctl b/synctl
index 81e9bf6b5c..960fd357ee 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