|
|
|
@@ -23,12 +23,6 @@ Type=simple |
|
|
|
Environment="HOME={{ devture_systemd_docker_base_systemd_unit_home_path }}" |
|
|
|
ExecStartPre=-{{ 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' |
|
|
|
ExecStartPre=-{{ devture_systemd_docker_base_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} rm matrix-synapse 2>/dev/null || true' |
|
|
|
{% if matrix_s3_media_store_enabled %} |
|
|
|
# Allow for some time before starting, so that media store can mount. |
|
|
|
# Mounting can happen later too, but if we start writing, |
|
|
|
# we'd write files to the local filesystem and fusermount will complain. |
|
|
|
ExecStartPre={{ matrix_host_command_sleep }} 3 |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ |
|
|
|
--rm \ |
|
|
|
@@ -72,6 +66,10 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network conne |
|
|
|
|
|
|
|
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 |
|
|
|
# that depend on it (After/Requires) may only start after the homeserver is up and running. |
|
|
|
ExecStartPost=-{{ matrix_host_command_sleep }} 5 |
|
|
|
|
|
|
|
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' |
|
|
|
|
|
|
|
|