mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
Update power.sh
This commit is contained in:
parent
aa92254193
commit
766c6ad477
1 changed files with 4 additions and 10 deletions
12
src/power.sh
12
src/power.sh
|
|
@ -142,16 +142,10 @@ _graceful_shutdown() {
|
|||
finish "$code" && return "$code"
|
||||
}
|
||||
|
||||
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"
|
||||
SERIAL="pty"
|
||||
MONITOR="telnet:localhost:$QEMU_PORT,server,nowait,nodelay"
|
||||
MONITOR="$MONITOR -daemonize -D $QEMU_LOG -pidfile $QEMU_PID"
|
||||
|
||||
_trap _graceful_shutdown SIGTERM SIGHUP SIGINT SIGABRT SIGQUIT
|
||||
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue