Update power.sh

This commit is contained in:
Kroese 2024-01-23 19:59:21 +01:00 committed by GitHub
parent aa92254193
commit 766c6ad477
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -142,16 +142,10 @@ _graceful_shutdown() {
finish "$code" && return "$code"
}
MON_OPTS="\
-pidfile $QEMU_PID \
-monitor telnet:localhost:$QEMU_PORT,server,nowait,nodelay"
SERIAL="pty"
MONITOR="telnet:localhost:$QEMU_PORT,server,nowait,nodelay"
MONITOR="$MONITOR -daemonize -D $QEMU_LOG -pidfile $QEMU_PID"
if [[ "$CONSOLE" != [Yy]* ]]; then
MON_OPTS="$MON_OPTS -daemonize -D $QEMU_LOG"
_trap _graceful_shutdown SIGTERM SIGHUP SIGINT SIGABRT SIGQUIT
fi
_trap _graceful_shutdown SIGTERM SIGHUP SIGINT SIGABRT SIGQUIT
return 0