From c08d29b6d134fbb94d2cff0454ce27eb66930c4d Mon Sep 17 00:00:00 2001 From: JD Friedrikson Date: Wed, 31 May 2017 12:41:41 -0400 Subject: [PATCH] Use lxc-stop to stop systemd service Ever since 8eb62c2, systemd has not been able to cleanly stop lxc containers (via lxc@) because it's still using SIGPWR for systemd-based containers. We should now use the nice logic in 330ae3d to stop the containers instead. Signed-off-by: JD Friedrikson --- config/init/systemd/lxc@.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/init/systemd/lxc@.service.in b/config/init/systemd/lxc@.service.in index 44d11e8ec..a2aa2211f 100644 --- a/config/init/systemd/lxc@.service.in +++ b/config/init/systemd/lxc@.service.in @@ -8,9 +8,9 @@ Documentation=man:lxc-start man:lxc [Service] Type=simple KillMode=mixed -KillSignal=SIGPWR TimeoutStopSec=120s ExecStart=@BINDIR@/lxc-start -F -n %i +ExecStop=@BINDIR@/lxc-stop -n %i # Environment=BOOTUP=serial # Environment=CONSOLETYPE=serial Delegate=yes