|
|
|
@ -12,14 +12,14 @@ DefaultDependencies=no
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
|
|
|
|
Environment="HOME={{ matrix_systemd_unit_home_path }}"
|
|
|
|
|
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-mautrix-slack 2>/dev/null || true'
|
|
|
|
|
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-mautrix-slack 2>/dev/null || true'
|
|
|
|
|
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 }} kill matrix-mautrix-slack 2>/dev/null || true'
|
|
|
|
|
ExecStartPre=-{{ devture_systemd_docker_base_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} rm matrix-mautrix-slack 2>/dev/null || true'
|
|
|
|
|
|
|
|
|
|
# Intentional delay, so that the homeserver (we likely depend on) can manage to start.
|
|
|
|
|
ExecStartPre={{ matrix_host_command_sleep }} 5
|
|
|
|
|
|
|
|
|
|
ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-mautrix-slack \
|
|
|
|
|
ExecStart={{ devture_systemd_docker_base_host_command_docker }} run --rm --name matrix-mautrix-slack \
|
|
|
|
|
--log-driver=none \
|
|
|
|
|
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
|
|
|
|
|
--cap-drop=ALL \
|
|
|
|
@ -33,8 +33,8 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-mautrix-slack
|
|
|
|
|
{{ matrix_mautrix_slack_docker_image }} \
|
|
|
|
|
/usr/bin/mautrix-slack -c /config/config.yaml -r /config/registration.yaml --no-update
|
|
|
|
|
|
|
|
|
|
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-mautrix-slack 2>/dev/null || true'
|
|
|
|
|
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-mautrix-slack 2>/dev/null || true'
|
|
|
|
|
ExecStop=-{{ devture_systemd_docker_base_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} kill matrix-mautrix-slack 2>/dev/null || true'
|
|
|
|
|
ExecStop=-{{ devture_systemd_docker_base_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} rm matrix-mautrix-slack 2>/dev/null || true'
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=30
|
|
|
|
|
SyslogIdentifier=matrix-mautrix-slack
|
|
|
|
|