summary refs log tree commit diff
diff options
context:
space:
mode:
authorvillepeh <100730729+villepeh@users.noreply.github.com>2024-04-26 11:56:20 +0300
committerGitHub <noreply@github.com>2024-04-26 09:56:20 +0100
commit9c918739220bb548d9e5e5c2f5692c79bd38668d (patch)
tree855555aa617f53ed117d5f56dbb78a0206f1a5b4
parentImprove error message for cross signing reset with MSC3861 enabled (#17121) (diff)
downloadsynapse-9c918739220bb548d9e5e5c2f5692c79bd38668d.tar.xz
Add RuntimeDirectory to matrix-synapse.service (#17084)
This makes it easy to store UNIX sockets with correct permissions. Those
would be located in /run/synapse which is the directory used in many
examples in Synapse configuration manual. Additionally, the directory
and sockets are deleted when Synapse is shut down.
-rw-r--r--changelog.d/17084.doc1
-rw-r--r--docs/systemd-with-workers/system/matrix-synapse.service1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/17084.doc b/changelog.d/17084.doc
new file mode 100644
index 0000000000..8b97c81096
--- /dev/null
+++ b/changelog.d/17084.doc
@@ -0,0 +1 @@
+Add RuntimeDirectory to example matrix-synapse.service systemd unit.
diff --git a/docs/systemd-with-workers/system/matrix-synapse.service b/docs/systemd-with-workers/system/matrix-synapse.service
index 0c73fb55fb..31ceccb77f 100644
--- a/docs/systemd-with-workers/system/matrix-synapse.service
+++ b/docs/systemd-with-workers/system/matrix-synapse.service
@@ -9,6 +9,7 @@ ReloadPropagatedFrom=matrix-synapse.target
 Type=notify
 NotifyAccess=main
 User=matrix-synapse
+RuntimeDirectory=synapse
 WorkingDirectory=/var/lib/matrix-synapse
 EnvironmentFile=-/etc/default/matrix-synapse
 ExecStartPre=/opt/venvs/matrix-synapse/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-synapse/homeserver.yaml --config-path=/etc/matrix-synapse/conf.d/ --generate-keys