0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 12:53:51 +01:00

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

This commit is contained in:
Richard van der Hoff 2020-06-03 13:16:15 +01:00 committed by GitHub
parent 2a8ed93bd4
commit 38d4ebbac7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/7624.bugfix Normal file
View file

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

2
synctl
View file

@ -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