fix: Quit message

This commit is contained in:
Kroese 2023-12-22 04:24:48 +01:00 committed by GitHub
parent ef5b650991
commit dce447c974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,9 +67,10 @@ _graceful_shutdown() {
if [ "$(cat $QEMU_COUNT)" -ge "$QEMU_TIMEOUT" ]; then if [ "$(cat $QEMU_COUNT)" -ge "$QEMU_TIMEOUT" ]; then
echo && error "Shutdown timeout reached, forcefully quitting.." echo && error "Shutdown timeout reached, forcefully quitting.."
else
echo && echo " Quitting..."
fi fi
echo && echo " Quitting..."
echo 'quit' | nc -q 1 -w 1 localhost "$QEMU_PORT" >/dev/null 2>&1 || true echo 'quit' | nc -q 1 -w 1 localhost "$QEMU_PORT" >/dev/null 2>&1 || true
{ pkill -f print.sh || true; } 2>/dev/null { pkill -f print.sh || true; } 2>/dev/null