mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
synctl restart
should start synapse if it wasn't running (#7624)
This commit is contained in:
parent
2a8ed93bd4
commit
38d4ebbac7
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 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
|
||||||
|
Loading…
Reference in New Issue
Block a user