Skip to content

Commit

Permalink
Add RuntimeDirectory to matrix-synapse.service (#17084)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
villepeh authored Apr 26, 2024
1 parent 41fbe38 commit 9c91873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/17084.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add RuntimeDirectory to example matrix-synapse.service systemd unit.
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 @@ -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
Expand Down

0 comments on commit 9c91873

Please sign in to comment.