|
|
@ -21,8 +21,8 @@ DefaultDependencies=no
|
|
|
|
[Service]
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Type=simple
|
|
|
|
Environment="HOME={{ matrix_systemd_unit_home_path }}"
|
|
|
|
Environment="HOME={{ matrix_systemd_unit_home_path }}"
|
|
|
|
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-synapse 2>/dev/null'
|
|
|
|
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-synapse 2>/dev/null || true'
|
|
|
|
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-synapse 2>/dev/null'
|
|
|
|
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_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={{ matrix_host_command_docker }} run --rm --name matrix-synapse \
|
|
|
|
{{ matrix_synapse_docker_image }} \
|
|
|
|
{{ matrix_synapse_docker_image }} \
|
|
|
|
run -m synapse.app.homeserver -c /data/homeserver.yaml
|
|
|
|
run -m synapse.app.homeserver -c /data/homeserver.yaml
|
|
|
|
|
|
|
|
|
|
|
|
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-synapse 2>/dev/null'
|
|
|
|
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-synapse 2>/dev/null || true'
|
|
|
|
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-synapse 2>/dev/null'
|
|
|
|
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-synapse 2>/dev/null || true'
|
|
|
|
ExecReload={{ matrix_host_command_docker }} exec matrix-synapse /bin/sh -c 'kill -HUP 1'
|
|
|
|
ExecReload={{ matrix_host_command_docker }} exec matrix-synapse /bin/sh -c 'kill -HUP 1'
|
|
|
|
Restart=always
|
|
|
|
Restart=always
|
|
|
|
RestartSec=30
|
|
|
|
RestartSec=30
|
|
|
|