Browse Source

Merge "Make sure failed containers get stopped by systemd" into stable/train

changes/97/738697/1
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
f63fef5749
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

@@ -11,6 +11,7 @@ ExecStart=/usr/bin/podman start {{ lookup('dict', container_data_unit).key }}
{% endif %}
ExecReload=/usr/bin/podman kill --signal HUP {{ lookup('dict', container_data_unit).key }}
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