summary refs log tree commit diff
path: root/contrib/systemd-with-workers/system
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-07-23 10:13:12 +0100
committerErik Johnston <erik@matrix.org>2019-07-23 10:14:01 +0100
commitcda4460d99d0956359767ef7a2b8a9740d5aec7c (patch)
tree5acc31d4bd1998624cc2a8b20dbce7cb3cc8d3ea /contrib/systemd-with-workers/system
parentUpdate example systemd service file (diff)
downloadsynapse-cda4460d99d0956359767ef7a2b8a9740d5aec7c.tar.xz
Also update systemd-with-workers contrib examples
Diffstat (limited to 'contrib/systemd-with-workers/system')
-rw-r--r--contrib/systemd-with-workers/system/matrix-synapse-worker@.service3
-rw-r--r--contrib/systemd-with-workers/system/matrix-synapse.service3
2 files changed, 4 insertions, 2 deletions
diff --git a/contrib/systemd-with-workers/system/matrix-synapse-worker@.service b/contrib/systemd-with-workers/system/matrix-synapse-worker@.service
index 9d980d5168..3507e2e989 100644
--- a/contrib/systemd-with-workers/system/matrix-synapse-worker@.service
+++ b/contrib/systemd-with-workers/system/matrix-synapse-worker@.service
@@ -4,7 +4,8 @@ After=matrix-synapse.service
 BindsTo=matrix-synapse.service
 
 [Service]
-Type=simple
+Type=notify
+NotifyAccess=main
 User=matrix-synapse
 WorkingDirectory=/var/lib/matrix-synapse
 EnvironmentFile=/etc/default/matrix-synapse
diff --git a/contrib/systemd-with-workers/system/matrix-synapse.service b/contrib/systemd-with-workers/system/matrix-synapse.service
index 3aae19034c..68e8991f18 100644
--- a/contrib/systemd-with-workers/system/matrix-synapse.service
+++ b/contrib/systemd-with-workers/system/matrix-synapse.service
@@ -2,7 +2,8 @@
 Description=Synapse Matrix Homeserver
 
 [Service]
-Type=simple
+Type=notify
+NotifyAccess=main
 User=matrix-synapse
 WorkingDirectory=/var/lib/matrix-synapse
 EnvironmentFile=/etc/default/matrix-synapse