Make post-start delay for matrix-synapse configurable
This commit is contained in:
parent
3ba0642bcf
commit
cd06e04497
@ -322,6 +322,15 @@ matrix_synapse_systemd_wanted_services_list_default: []
|
|||||||
matrix_synapse_systemd_wanted_services_list_auto: []
|
matrix_synapse_systemd_wanted_services_list_auto: []
|
||||||
matrix_synapse_systemd_wanted_services_list_custom: []
|
matrix_synapse_systemd_wanted_services_list_custom: []
|
||||||
|
|
||||||
|
# Controls how long to sleep for after starting the matrix-synapse container.
|
||||||
|
#
|
||||||
|
# Delaying, so that the homeserver can manage to fully start and various services
|
||||||
|
# that depend on it (`matrix_synapse_systemd_required_services_list` and `matrix_synapse_systemd_wanted_services_list`)
|
||||||
|
# may only start after the homeserver is up and running.
|
||||||
|
#
|
||||||
|
# This can be set to 0 to remove the delay.
|
||||||
|
matrix_synapse_systemd_service_post_start_delay_seconds: 10
|
||||||
|
|
||||||
matrix_synapse_in_container_python_packages_path: "/usr/local/lib/python3.11/site-packages"
|
matrix_synapse_in_container_python_packages_path: "/usr/local/lib/python3.11/site-packages"
|
||||||
|
|
||||||
# Specifies which template files to use when configuring Synapse.
|
# Specifies which template files to use when configuring Synapse.
|
||||||
|
@ -66,9 +66,9 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network conne
|
|||||||
|
|
||||||
ExecStart={{ devture_systemd_docker_base_host_command_docker }} start --attach matrix-synapse
|
ExecStart={{ devture_systemd_docker_base_host_command_docker }} start --attach matrix-synapse
|
||||||
|
|
||||||
# Intentional delay, so that the homeserver can manage to start and various services
|
{% if matrix_synapse_systemd_service_post_start_delay_seconds > 0 %}
|
||||||
# that depend on it (After/Requires) may only start after the homeserver is up and running.
|
ExecStartPost=-{{ matrix_host_command_sleep }} {{ matrix_synapse_systemd_service_post_start_delay_seconds }}
|
||||||
ExecStartPost=-{{ matrix_host_command_sleep }} 10
|
{% endif %}
|
||||||
|
|
||||||
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 }} 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'
|
ExecStop=-{{ devture_systemd_docker_base_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} rm matrix-synapse 2>/dev/null || true'
|
||||||
|
Loading…
Reference in New Issue
Block a user