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: I5946a36e56dd1f3b49104deaef4ab69bada8e264
This commit is contained in:
Cédric Jeanneret 2019-11-29 09:22:12 +01:00
parent 2193db20c6
commit de7e74acd0
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ Wants=%(wants)s
[Service]
Restart=%(restart)s
ExecStart=%(start_cmd)s
ExecReload=/usr/bin/podman kill --signal HUP %(name)s
ExecStop=/usr/bin/podman stop -t %(stop_grace_period)s %(name)s
KillMode=none
Type=forking