summary refs log tree commit diff
path: root/docs/systemd-with-workers
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-09-08 10:57:43 +0100
committerGitHub <noreply@github.com>2020-09-08 10:57:43 +0100
commitad28030c124ab797f00a94fb1590d81559bb649c (patch)
tree9bf1a641ac0faf34abec6f1cd6d62eca1431b815 /docs/systemd-with-workers
parentOnly add rows to the push actions table if the event notifies or should be ma... (diff)
downloadsynapse-ad28030c124ab797f00a94fb1590d81559bb649c.tar.xz
Systemd docs: configure workers to start after main process. (#8276)
Diffstat (limited to 'docs/systemd-with-workers')
-rw-r--r--docs/systemd-with-workers/system/matrix-synapse-worker@.service5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/systemd-with-workers/system/matrix-synapse-worker@.service b/docs/systemd-with-workers/system/matrix-synapse-worker@.service
index 39bc5e88e8..cb5ac0ac87 100644
--- a/docs/systemd-with-workers/system/matrix-synapse-worker@.service
+++ b/docs/systemd-with-workers/system/matrix-synapse-worker@.service
@@ -1,9 +1,14 @@
 [Unit]
 Description=Synapse %i
 AssertPathExists=/etc/matrix-synapse/workers/%i.yaml
+
 # This service should be restarted when the synapse target is restarted.
 PartOf=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.
+After=matrix-synapse.service
+
 [Service]
 Type=notify
 NotifyAccess=main