From de7e74acd0f9a8f2d294198426d62ad36dac2824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Jeanneret?= Date: Fri, 29 Nov 2019 09:22:12 +0100 Subject: [PATCH] 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 --- paunch/utils/systemd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/paunch/utils/systemd.py b/paunch/utils/systemd.py index 3494e2f..fbdddaa 100644 --- a/paunch/utils/systemd.py +++ b/paunch/utils/systemd.py @@ -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