Sfoglia il codice sorgente

Prevent workers failing if their config doesn't exist

- cherry-pick "Ensure worker config exists in systemd service (#7528)"
  from synapse d74cdc1a42e8b487d74c214b1d0ca575429d546a:
  "check that the worker config file exists instead of silently failing."
pull/456/head
Marcel Partap 5 anni fa
parent
commit
40024e9b81
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      roles/matrix-synapse/templates/synapse/systemd/matrix-synapse-worker@.service.j2

+ 1
- 0
roles/matrix-synapse/templates/synapse/systemd/matrix-synapse-worker@.service.j2 Vedi File

@@ -2,6 +2,7 @@
# c.f. https://github.com/matrix-org/synapse/pull/4662 # c.f. https://github.com/matrix-org/synapse/pull/4662
[Unit] [Unit]
Description=Synapse Matrix Worker Description=Synapse Matrix Worker
AssertPathExists={{matrix_synapse_config_dir_path }}/worker.%i.yaml
After=matrix-synapse.service After=matrix-synapse.service
BindsTo=matrix-synapse.service BindsTo=matrix-synapse.service




Caricamento…
Annulla
Salva