Просмотр исходного кода

Rename docker container to matrix-bot-maubot

pull/1894/head
Julian-Samuel Gebühr 3 лет назад
Родитель
Сommit
2f167f2122
1 измененных файлов: 5 добавлений и 5 удалений
  1. +5
    -5
      roles/matrix-bot-maubot/templates/systemd/matrix-bot-maubot.service.j2

+ 5
- 5
roles/matrix-bot-maubot/templates/systemd/matrix-bot-maubot.service.j2 Просмотреть файл

@@ -13,10 +13,10 @@ 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-maubot 2>/dev/null || true'
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-maubot 2>/dev/null || true'
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-bot-maubot 2>/dev/null || true'
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-bot-maubot 2>/dev/null || true'


ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-maubot \
ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-bot-maubot \
--log-driver=none \ --log-driver=none \
-e UID={{ matrix_user_uid }} \ -e UID={{ matrix_user_uid }} \
-e GID={{ matrix_user_gid }} \ -e GID={{ matrix_user_gid }} \
@@ -31,8 +31,8 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-maubot \
{% endif %} {% endif %}
{{ matrix_bot_maubot_docker_image }} {{ matrix_bot_maubot_docker_image }}


ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-maubot 2>/dev/null || true'
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-maubot 2>/dev/null || true'
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-bot-maubot 2>/dev/null || true'
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-bot-maubot 2>/dev/null || true'
Restart=always Restart=always
RestartSec=30 RestartSec=30
SyslogIdentifier=matrix-bot-maubot SyslogIdentifier=matrix-bot-maubot


Загрузка…
Отмена
Сохранить