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

Commit

Permalink
example systemd config: propagate reloads to units (#9463)
Browse files Browse the repository at this point in the history
It should be possible to reload `synapse.target` to have the reload propagate
to all the synapse units.
  • Loading branch information
richvdh authored Feb 22, 2021
1 parent 0a363f9 commit 70ea959
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/9463.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the example systemd config to propagate reloads to individual units.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ AssertPathExists=/etc/matrix-synapse/workers/%i.yaml

# This service should be restarted when the synapse target is restarted.
PartOf=matrix-synapse.target
ReloadPropagatedFrom=matrix-synapse.target

# if this is started at the same time as the main, let the main process start
# first, to initialise the database schema.
Expand Down
1 change: 1 addition & 0 deletions docs/systemd-with-workers/system/matrix-synapse.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description=Synapse master

# This service should be restarted when the synapse target is restarted.
PartOf=matrix-synapse.target
ReloadPropagatedFrom=matrix-synapse.target

[Service]
Type=notify
Expand Down

0 comments on commit 70ea959

Please sign in to comment.