From ddf3a38a2324e827e772dc63fa4a23e390ebed0a Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 7 Sep 2020 16:41:54 +0100 Subject: [PATCH] Systemd docs: configure workers to start after main process. --- changelog.d/8276.misc | 1 + .../system/matrix-synapse-worker@.service | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 changelog.d/8276.misc diff --git a/changelog.d/8276.misc b/changelog.d/8276.misc new file mode 100644 index 000000000000..e7c899bea882 --- /dev/null +++ b/changelog.d/8276.misc @@ -0,0 +1 @@ +Do not attempt to upgrade upgrade database schema on worker processes. diff --git a/docs/systemd-with-workers/system/matrix-synapse-worker@.service b/docs/systemd-with-workers/system/matrix-synapse-worker@.service index 39bc5e88e862..cb5ac0ac8754 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