Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
synctl restart should start synapse if it wasn't running (#7624)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh authored Jun 3, 2020
1 parent 2a8ed93 commit 38d4ebb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/7624.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make `synctl restart` start synapse if it wasn't running.
2 changes: 1 addition & 1 deletion synctl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38d4ebb

Please sign in to comment.