|
|
@ -21,8 +21,8 @@ DefaultDependencies=no
|
|
|
|
[Service]
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Type=simple
|
|
|
|
Environment="HOME={{ devture_systemd_docker_base_systemd_unit_home_path }}"
|
|
|
|
Environment="HOME={{ devture_systemd_docker_base_systemd_unit_home_path }}"
|
|
|
|
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} kill matrix-synapse 2>/dev/null || true'
|
|
|
|
ExecStartPre=-{{ devture_systemd_docker_base_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} kill matrix-synapse 2>/dev/null || true'
|
|
|
|
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} rm 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 %}
|
|
|
|
{% if matrix_s3_media_store_enabled %}
|
|
|
|
# Allow for some time before starting, so that media store can mount.
|
|
|
|
# Allow for some time before starting, so that media store can mount.
|
|
|
|
# Mounting can happen later too, but if we start writing,
|
|
|
|
# Mounting can happen later too, but if we start writing,
|
|
|
@ -63,8 +63,8 @@ ExecStart={{ devture_systemd_docker_base_host_command_docker }} run --rm --name
|
|
|
|
{{ matrix_synapse_docker_image_final }} \
|
|
|
|
{{ matrix_synapse_docker_image_final }} \
|
|
|
|
run -m synapse.app.homeserver -c /data/homeserver.yaml
|
|
|
|
run -m synapse.app.homeserver -c /data/homeserver.yaml
|
|
|
|
|
|
|
|
|
|
|
|
ExecStop=-{{ matrix_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} kill matrix-synapse 2>/dev/null || true'
|
|
|
|
ExecStop=-{{ devture_systemd_docker_base_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} kill matrix-synapse 2>/dev/null || true'
|
|
|
|
ExecStop=-{{ matrix_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'
|
|
|
|
ExecReload={{ devture_systemd_docker_base_host_command_docker }} exec matrix-synapse /bin/sh -c 'kill -HUP 1'
|
|
|
|
ExecReload={{ devture_systemd_docker_base_host_command_docker }} exec matrix-synapse /bin/sh -c 'kill -HUP 1'
|
|
|
|
Restart=always
|
|
|
|
Restart=always
|
|
|
|
RestartSec=30
|
|
|
|
RestartSec=30
|
|
|
|