Skip to content
Snippets Groups Projects
Unverified Commit 38d4ebba authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

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

parent 2a8ed93b
No related branches found
No related tags found
No related merge requests found
Make `synctl restart` start synapse if it wasn't running.
...@@ -328,7 +328,7 @@ def main(): ...@@ -328,7 +328,7 @@ def main():
if start_stop_synapse: if start_stop_synapse:
if not stop(pidfile, "synapse.app.homeserver"): if not stop(pidfile, "synapse.app.homeserver"):
has_stopped = False has_stopped = False
if not has_stopped: if not has_stopped and action == "stop":
sys.exit(1) sys.exit(1)
# Wait for synapse to actually shutdown before starting it again # Wait for synapse to actually shutdown before starting it again
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment