mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 11:25:49 +00:00
Update power.sh
This commit is contained in:
parent
aa92254193
commit
766c6ad477
1 changed files with 4 additions and 10 deletions
14
src/power.sh
14
src/power.sh
|
|
@ -142,16 +142,10 @@ _graceful_shutdown() {
|
||||||
finish "$code" && return "$code"
|
finish "$code" && return "$code"
|
||||||
}
|
}
|
||||||
|
|
||||||
MON_OPTS="\
|
SERIAL="pty"
|
||||||
-pidfile $QEMU_PID \
|
MONITOR="telnet:localhost:$QEMU_PORT,server,nowait,nodelay"
|
||||||
-monitor telnet:localhost:$QEMU_PORT,server,nowait,nodelay"
|
MONITOR="$MONITOR -daemonize -D $QEMU_LOG -pidfile $QEMU_PID"
|
||||||
|
|
||||||
if [[ "$CONSOLE" != [Yy]* ]]; then
|
_trap _graceful_shutdown SIGTERM SIGHUP SIGINT SIGABRT SIGQUIT
|
||||||
|
|
||||||
MON_OPTS="$MON_OPTS -daemonize -D $QEMU_LOG"
|
|
||||||
|
|
||||||
_trap _graceful_shutdown SIGTERM SIGHUP SIGINT SIGABRT SIGQUIT
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue