Procházet zdrojové kódy

Use ExecStopPost instead of ExecStop

This is the equivalent of b1b4ba501f for the matrix-dendrite role.
pull/818/head
Slavi Pantaleev před 4 roky
rodič
revize
6181cddba1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      roles/matrix-dendrite/templates/dendrite/systemd/matrix-dendrite.service.j2

+ 2
- 2
roles/matrix-dendrite/templates/dendrite/systemd/matrix-dendrite.service.j2 Zobrazit soubor

@@ -53,8 +53,8 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-dendrite \
{% endif %}
{{ matrix_dendrite_process_extra_arguments|join(' ') }}

ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-dendrite 2>/dev/null'
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-dendrite 2>/dev/null'
ExecStopPost=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-dendrite 2>/dev/null'
ExecStopPost=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-dendrite 2>/dev/null'
ExecReload={{ matrix_host_command_docker }} exec matrix-dendrite /bin/sh -c 'kill -HUP 1'
Restart=always
RestartSec=30


Načítá se…
Zrušit
Uložit