Add missing ExecReload in container service unit file
It may happen that we want to just reload the container. Before this patch, it was a "stop and start", while podman has the "podman kill" available, accepting the HUP signal. Doing so allows other automated tools to actually just "reload" the container as we would do for a standard service. Change-Id: I35eff80f7637b013d3a1a831289ec9b1e0f81431
This commit is contained in:
parent
6beea6116a
commit
2a2bed6f5c
|
@ -9,6 +9,7 @@ ExecStart=/usr/libexec/tripleo-start-podman-container {{ container_sysd_name }}
|
||||||
{% else %}
|
{% else %}
|
||||||
ExecStart=/usr/bin/podman start {{ container_sysd_name }}
|
ExecStart=/usr/bin/podman start {{ container_sysd_name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
ExecReload=/usr/bin/podman kill --signal HUP {{ container_sysd_name }}
|
||||||
ExecStop=/usr/bin/podman stop -t {{ container_sysd_data.stop_grace_period | default(10) | int }} {{ container_sysd_name }}
|
ExecStop=/usr/bin/podman stop -t {{ container_sysd_data.stop_grace_period | default(10) | int }} {{ container_sysd_name }}
|
||||||
KillMode=none
|
KillMode=none
|
||||||
Type=forking
|
Type=forking
|
||||||
|
|
Loading…
Reference in New Issue