Unverified Commit f983dc3e authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Remove stale QEMU files (#1174)

parent 38f9c492
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 \
+3 −3
Original line number Diff line number Diff line
@@ -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