fix: Remove stale QEMU files (#1174)

This commit is contained in:
Kroese
2026-05-30 23:05:16 +02:00
committed by GitHub
parent 38f9c49200
commit f983dc3e46
2 changed files with 6 additions and 6 deletions

View File

@@ -19,10 +19,8 @@ if [[ "$KVM" == [Nn]* ]]; then
QEMU_TIMEOUT=$(( QEMU_TIMEOUT*2 ))
fi
touch "$QEMU_LOG"
_trap() {
func="$1" ; shift
local func="$1" ; shift
for sig ; do
trap "$func $sig" "$sig"
done
@@ -178,6 +176,8 @@ _graceful_shutdown() {
finish "$code" && return "$code"
}
touch "$QEMU_LOG"
MON_OPTS="\
-pidfile $QEMU_PID \
-name $PROCESS,process=$PROCESS,debug-threads=on \

View File

@@ -102,7 +102,6 @@ else
fi
QEMU_PID="$QEMU_DIR/qemu.pid"
rm -f "$QEMU_PID"
# Check folder
@@ -225,8 +224,9 @@ if [[ "$KVM" != [Nn]* ]]; then
fi
# Cleanup files
rm -f /run/shm/qemu.*
rm -f /run/shm/dsm.url
rm -f "$QEMU_DIR"/qemu.*
rm -f "$QEMU_DIR"/dsm.url
rm -f "$QEMU_DIR"/remote.ip
# Cleanup dirs
rm -rf /tmp/dsm