Use lxc-stop to stop systemd service

Ever since 8eb62c24, 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 330ae3d3 to stop the containers instead. Signed-off-by: 's avatarJD Friedrikson <yours@decompo.site>
parent f6104dff
...@@ -8,9 +8,9 @@ Documentation=man:lxc-start man:lxc ...@@ -8,9 +8,9 @@ Documentation=man:lxc-start man:lxc
[Service] [Service]
Type=simple Type=simple
KillMode=mixed KillMode=mixed
KillSignal=SIGPWR
TimeoutStopSec=120s TimeoutStopSec=120s
ExecStart=@BINDIR@/lxc-start -F -n %i ExecStart=@BINDIR@/lxc-start -F -n %i
ExecStop=@BINDIR@/lxc-stop -n %i
# Environment=BOOTUP=serial # Environment=BOOTUP=serial
# Environment=CONSOLETYPE=serial # Environment=CONSOLETYPE=serial
Delegate=yes Delegate=yes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment