From 50f8f6e6af5d784e798589e81df82e04c412ebbc Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 21 Apr 2023 18:28:16 +0200 Subject: [PATCH] _QEMU_PID --- run/power.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run/power.sh b/run/power.sh index c969288..abcb528 100644 --- a/run/power.sh +++ b/run/power.sh @@ -56,7 +56,8 @@ _graceful_shutdown() { echo echo "Please update the VirtualDSM Agent to allow gracefull shutdowns..." - kill -15 $(cat "${_QEMU_PID}") + PID=$(cat "${_QEMU_PID}") + kill -15 "${PID}" pkill -f qemu-system-x86_64 fi