Browse Source

`synctl restart` should start synapse if it wasn't running (#7624)

Richard van der Hoff 3 years ago
parent
commit
38d4ebbac7
2 changed files with 2 additions and 1 deletions
  1. 1 0
      changelog.d/7624.bugfix
  2. 1 1
      synctl

+ 1 - 0
changelog.d/7624.bugfix

@@ -0,0 +1 @@
+Make `synctl restart` start synapse if it wasn't running.

+ 1 - 1
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