Browse Source

Merge "Make sure failed containers get stopped by systemd"

changes/24/737624/9
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
b387893e21
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      tripleo_ansible/roles/tripleo_container_manage/templates/systemd-service.j2

+ 1
- 0
tripleo_ansible/roles/tripleo_container_manage/templates/systemd-service.j2 View File

@@ -14,6 +14,7 @@ ExecReload=/usr/bin/podman kill --signal HUP {{ lookup('dict', container_data_un
ExecStop=-/usr/bin/podman exec {{ lookup('dict', container_data_unit).key }} {{ lookup('dict', container_data_unit).value.pre_stop_exec }}
{% endif %}
ExecStop=/usr/bin/podman stop -t {{ lookup('dict', container_data_unit).value.stop_grace_period | default(10) | int }} {{ lookup('dict', container_data_unit).key }}
ExecStopPost=/usr/bin/podman stop -t {{ lookup('dict', container_data_unit).value.stop_grace_period | default(10) | int }} {{ lookup('dict', container_data_unit).key }}
KillMode=none
Type=forking
PIDFile=/var/run/{{ lookup('dict', container_data_unit).key }}.pid


Loading…
Cancel
Save