mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-05-31 20:16:33 +00:00
fix: Remove stale QEMU files (#1174)
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user