mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 08:29:25 -05:00
Systemd docs: configure workers to start after main process. (#8276)
This commit is contained in:
parent
d8762cc116
commit
ad28030c12
1
changelog.d/8276.misc
Normal file
1
changelog.d/8276.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Do not attempt to upgrade upgrade database schema on worker processes.
|
@ -1,9 +1,14 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Synapse %i
|
Description=Synapse %i
|
||||||
AssertPathExists=/etc/matrix-synapse/workers/%i.yaml
|
AssertPathExists=/etc/matrix-synapse/workers/%i.yaml
|
||||||
|
|
||||||
# This service should be restarted when the synapse target is restarted.
|
# This service should be restarted when the synapse target is restarted.
|
||||||
PartOf=matrix-synapse.target
|
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]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=main
|
NotifyAccess=main
|
||||||
|
Loading…
Reference in New Issue
Block a user