Skip to content

Commit

Permalink
synctl restart should start synapse if it wasn't running (matrix-or…
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh authored and phil-flex committed Jun 16, 2020
1 parent d526038 commit 6995165
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 6995165

Please sign in to comment.