Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit ad28030

Browse files
authored
Systemd docs: configure workers to start after main process. (#8276)
1 parent d8762cc commit ad28030

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

changelog.d/8276.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Do not attempt to upgrade upgrade database schema on worker processes.

docs/systemd-with-workers/system/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
[Unit]
22
Description=Synapse %i
33
AssertPathExists=/etc/matrix-synapse/workers/%i.yaml
4+
45
# This service should be restarted when the synapse target is restarted.
56
PartOf=matrix-synapse.target
67

8+
# if this is started at the same time as the main, let the main process start
9+
# first, to initialise the database schema.
10+
After=matrix-synapse.service
11+
712
[Service]
813
Type=notify
914
NotifyAccess=main

0 commit comments

Comments
 (0)