From 3ba0642bcfec4906e2ab9a687a704e9f214d2e4f Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 17 Jan 2024 12:21:19 +0200 Subject: [PATCH] Increase delay after starting of matrix-synapse 10 seconds is a better default for slower (or overloaded) servers --- .../templates/synapse/systemd/matrix-synapse.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/custom/matrix-synapse/templates/synapse/systemd/matrix-synapse.service.j2 b/roles/custom/matrix-synapse/templates/synapse/systemd/matrix-synapse.service.j2 index 2ed1bbd49..788bfaf2b 100644 --- a/roles/custom/matrix-synapse/templates/synapse/systemd/matrix-synapse.service.j2 +++ b/roles/custom/matrix-synapse/templates/synapse/systemd/matrix-synapse.service.j2 @@ -68,7 +68,7 @@ ExecStart={{ devture_systemd_docker_base_host_command_docker }} start --attach m # Intentional delay, so that the homeserver can manage to start and various services # that depend on it (After/Requires) may only start after the homeserver is up and running. -ExecStartPost=-{{ matrix_host_command_sleep }} 5 +ExecStartPost=-{{ matrix_host_command_sleep }} 10 ExecStop=-{{ devture_systemd_docker_base_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} stop --time={{ devture_systemd_docker_base_container_stop_grace_time_seconds }} matrix-synapse 2>/dev/null || true' ExecStop=-{{ devture_systemd_docker_base_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} rm matrix-synapse 2>/dev/null || true'