fix: Display config (#519)

* fix: Display config
This commit is contained in:
Kroese
2023-12-29 16:56:49 +01:00
committed by GitHub
parent 08616f1057
commit 63cac9a75e
6 changed files with 34 additions and 19 deletions

View File

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