mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Agent version
This commit is contained in:
parent
ab9b74793a
commit
051f51efee
@ -32,7 +32,7 @@ _graceful_shutdown(){
|
||||
# Don't send the powerdown signal because vDSM ignores ACPI signals
|
||||
# echo 'system_powerdown' | nc -q 1 -w 1 localhost "${QEMU_MONPORT}" > /dev/null
|
||||
|
||||
# Send shutdown command to guest agent tools instead via serial port
|
||||
# Send shutdown command instead via serial port
|
||||
RESPONSE=$(curl -s -m 2 -S http://127.0.0.1:2210/write?command=6 2>&1)
|
||||
|
||||
if [[ ! "${RESPONSE}" =~ "\"success\"" ]] ; then
|
||||
@ -40,9 +40,9 @@ _graceful_shutdown(){
|
||||
echo
|
||||
echo "Could not send shutdown command to guest, error: $RESPONSE"
|
||||
|
||||
AGENT_VERSION=1
|
||||
AGENT="${STORAGE}/${BASE}.agent"
|
||||
[ ! -f "$AGENT" ] && echo "1" > "$AGENT"
|
||||
AGENT_VERSION=$(cat "${AGENT}")
|
||||
[ -f "$AGENT" ] && AGENT_VERSION=$(cat "${AGENT}")
|
||||
|
||||
if ((AGENT_VERSION < 2)); then
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user