1
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2024-12-18 09:35:22 +02:00
matrix-docker-ansible-deploy/roles/custom/matrix-synapse/templates/synapse
Slavi Pantaleev e033520ce2 Make Synapse worker systemd service files depend on matrix-synapse.service
Many of these do depend on the Synapse master process (`matrix-synapse.service`),
so it makes sense to do it.

Furthermore, we're doing it so that one can stop the `matrix-synapse.service`
service and have systemd cascade this into stopping all the workers as well.

This is useful for easily stopping all of Synapse, so that Postgres
upgrades (`--tags=upgrade-postgres`) can happen cleanly.
Postgres upgrades currently stop `devture_postgres_systemd_services_to_stop_for_maintenance_list` which
includes Synapse, but stopping just the master process and leaving workers running is not safe enough and sometimes leads to errors like:

> ERROR:  insert or update on table "event_forward_extremities" violates foreign key constraint "event_forward_extremities_event_id"

With this dependency in place, stopping `matrix-synapse.service` will stop all Synapse processes.
2023-09-16 11:37:24 +03:00
..
bin /usr/local/bin/matrix-synapse-register-user -> /matrix/synapse/bin/register-user 2022-11-27 09:26:18 +02:00
customizations Add support for customizing Synapse templates 2023-02-17 19:37:34 +02:00
ext/s3-storage-provider Apply suggestions from code review 2023-06-13 14:48:44 -05:00
prometheus Move roles/matrix* to roles/custom/matrix* 2022-11-03 09:11:29 +02:00
systemd Make Synapse worker systemd service files depend on matrix-synapse.service 2023-09-16 11:37:24 +03:00
homeserver.yaml.j2 Deprecate matrix_synapse_spam_checker in favor of matrix_synapse_modules 2023-08-26 20:09:37 +03:00
synapse.log.config.j2 Move roles/matrix* to roles/custom/matrix* 2022-11-03 09:11:29 +02:00
worker.yaml.j2 Stop using deprecated worker settings (worker_replication_host, worker_replication_http_port) 2023-07-11 17:20:21 +03:00