mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-29 19:09:45 +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]
|
[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
|
||||||
|
Loading…
Reference in New Issue
Block a user