mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
synctl restart
should start synapse if it wasn't running (#7624)
This commit is contained in:
parent
2a8ed93bd4
commit
38d4ebbac7
2 changed files with 2 additions and 1 deletions
1
changelog.d/7624.bugfix
Normal file
1
changelog.d/7624.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Make `synctl restart` start synapse if it wasn't running.
|
2
synctl
2
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
|
||||
|
|
Loading…
Reference in a new issue