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

Commit

Permalink
Systemd docs: configure workers to start after main process. (#8276)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh authored Sep 8, 2020
1 parent d8762cc commit ad28030
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/8276.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Do not attempt to upgrade upgrade database schema on worker processes.
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ad28030

Please sign in to comment.