From 70ea9593ffd5f4be09bc9ce5933b3f915f14fffa Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Mon, 22 Feb 2021 18:43:17 +0000 Subject: [PATCH] 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. --- changelog.d/9463.doc | 1 + docs/systemd-with-workers/system/matrix-synapse-worker@.service | 1 + docs/systemd-with-workers/system/matrix-synapse.service | 1 + 3 files changed, 3 insertions(+) create mode 100644 changelog.d/9463.doc diff --git a/changelog.d/9463.doc b/changelog.d/9463.doc new file mode 100644 index 0000000000..c9cedd147d --- /dev/null +++ b/changelog.d/9463.doc @@ -0,0 +1 @@ +Update the example systemd config to propagate reloads to individual units. diff --git a/docs/systemd-with-workers/system/matrix-synapse-worker@.service b/docs/systemd-with-workers/system/matrix-synapse-worker@.service index cb5ac0ac87..d164e8ce1f 100644 --- a/docs/systemd-with-workers/system/matrix-synapse-worker@.service +++ b/docs/systemd-with-workers/system/matrix-synapse-worker@.service @@ -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. diff --git a/docs/systemd-with-workers/system/matrix-synapse.service b/docs/systemd-with-workers/system/matrix-synapse.service index c7b5ddfa49..f6b6dfd3ce 100644 --- a/docs/systemd-with-workers/system/matrix-synapse.service +++ b/docs/systemd-with-workers/system/matrix-synapse.service @@ -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