mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 08:12:20 +00:00
Use lxc-stop to stop systemd service
Ever since8eb62c2
, 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 in330ae3d
to stop the containers instead. Signed-off-by: JD Friedrikson <yours@decompo.site>
This commit is contained in:
parent
f6104dffa3
commit
c08d29b6d1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user