Add support for reloading Synapse

This commit is contained in:
Slavi Pantaleev 2019-02-06 09:25:13 +02:00
parent 40f3793af7
commit 91a757c581
2 changed files with 3 additions and 1 deletions

View File

@ -135,4 +135,5 @@ matrix_synapse_tls_certificate_path: /some/path/inside/the/container/certificate
matrix_synapse_tls_private_key_path: /some/path/inside/the/container/private.key
```
Every once in a while (before the certificates expire), you'll need to completely restart Synapse (unless [Synapse becomes capable of reloading certificates without restarting - issue #1180](https://github.com/matrix-org/synapse/issues/1180)). Restarting Synapse can be done like this: `systemctl restart matrix-synapse`. Restarting causes some downtime.
Make sure to reload Synapse once in a while (`systemctl reload matrix-synapse`), so that newer certificates can kick in.
Reloading doesn't cause any downtime.

View File

@ -51,6 +51,7 @@ ExecStart=/usr/bin/docker run --rm --name matrix-synapse \
ExecStop=-/usr/bin/docker kill matrix-synapse
ExecStop=-/usr/bin/docker rm matrix-synapse
ExecReload=/usr/bin/docker exec matrix-synapse kill -HUP 1
Restart=always
RestartSec=30