From 75502b045d80ded718b55509f06ad078a45fcfae Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Fri, 25 Nov 2016 18:03:04 +0100 Subject: [PATCH] stop-target: use poweroff instead of halt When running Debian Jessie in KVM, using the halt command shuts down all services but does not stop the qemu process. Using the poweroff command avoids this problem. --- libexec/stop-target | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/stop-target b/libexec/stop-target index 6db547d..46714dc 100755 --- a/libexec/stop-target +++ b/libexec/stop-target @@ -11,7 +11,7 @@ case $VMSW in KVM) if [ ! -e var/target.pid ]; then exit; fi - on-target -u root halt + on-target -u root poweroff sleep 5 if [ ! -e var/target.pid ]; then exit; fi