example systemd config: propagate reloads to units (#9463)

It should be possible to reload `synapse.target` to have the reload propagate
to all the synapse units.
This commit is contained in:
Richard van der Hoff 2021-02-22 18:43:17 +00:00 committed by GitHub
parent 0a363f9ca4
commit 70ea9593ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

1
changelog.d/9463.doc Normal file
View File

@ -0,0 +1 @@
Update the example systemd config to propagate reloads to individual units.

View File

@ -4,6 +4,7 @@ AssertPathExists=/etc/matrix-synapse/workers/%i.yaml
# This service should be restarted when the synapse target is restarted. # This service should be restarted when the synapse target is restarted.
PartOf=matrix-synapse.target PartOf=matrix-synapse.target
ReloadPropagatedFrom=matrix-synapse.target
# if this is started at the same time as the main, let the main process start # if this is started at the same time as the main, let the main process start
# first, to initialise the database schema. # first, to initialise the database schema.

View File

@ -3,6 +3,7 @@ Description=Synapse master
# This service should be restarted when the synapse target is restarted. # This service should be restarted when the synapse target is restarted.
PartOf=matrix-synapse.target PartOf=matrix-synapse.target
ReloadPropagatedFrom=matrix-synapse.target
[Service] [Service]
Type=notify Type=notify