mirror of
https://github.com/dockur/windows.git
synced 2026-05-16 10:17:36 +01:00
fix: Use PID file from base image (#1711)
This commit is contained in:
+1
-4
@@ -6,8 +6,6 @@ set -Eeuo pipefail
|
|||||||
# Configure QEMU for graceful shutdown
|
# Configure QEMU for graceful shutdown
|
||||||
|
|
||||||
QEMU_TERM=""
|
QEMU_TERM=""
|
||||||
QEMU_DIR="/run/shm"
|
|
||||||
QEMU_PID="$QEMU_DIR/qemu.pid"
|
|
||||||
QEMU_PTY="$QEMU_DIR/qemu.pty"
|
QEMU_PTY="$QEMU_DIR/qemu.pty"
|
||||||
QEMU_LOG="$QEMU_DIR/qemu.log"
|
QEMU_LOG="$QEMU_DIR/qemu.log"
|
||||||
QEMU_OUT="$QEMU_DIR/qemu.out"
|
QEMU_OUT="$QEMU_DIR/qemu.out"
|
||||||
@@ -233,8 +231,7 @@ _graceful_shutdown() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SERIAL="pty"
|
SERIAL="pty"
|
||||||
MONITOR="telnet:localhost:$MON_PORT,server,nowait,nodelay"
|
MONITOR="telnet:localhost:$MON_PORT,server,nowait,nodelay -daemonize -D $QEMU_LOG"
|
||||||
MONITOR+=" -daemonize -D $QEMU_LOG -pidfile $QEMU_PID"
|
|
||||||
|
|
||||||
_trap _graceful_shutdown SIGTERM SIGHUP SIGINT SIGABRT SIGQUIT
|
_trap _graceful_shutdown SIGTERM SIGHUP SIGINT SIGABRT SIGQUIT
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user