style: improve the output when attempting to start a running VM
This commit is contained in:
parent
27ca4a27f0
commit
9dc669b44e
5
quickemu
5
quickemu
|
@ -1333,9 +1333,8 @@ function vm_boot() {
|
||||||
sed -i -e 's/ -/ \\\n -/g' "${VMDIR}/${VMNAME}.sh"
|
sed -i -e 's/ -/ \\\n -/g' "${VMDIR}/${VMNAME}.sh"
|
||||||
${QEMU} "${args[@]}" &> "${VMDIR}/${VMNAME}.log" &
|
${QEMU} "${args[@]}" &> "${VMDIR}/${VMNAME}.log" &
|
||||||
sleep 0.25
|
sleep 0.25
|
||||||
|
echo " - Process: Starting ${VM} as ${VMNAME} ($(cat "${VMDIR}/${VMNAME}.pid"))"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo " - Process: Starting ${VM} as ${VMNAME} ($(cat "${VMDIR}/${VMNAME}.pid"))"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function start_viewer {
|
function start_viewer {
|
||||||
|
@ -2036,6 +2035,8 @@ if [ -z "${VM_PID}" ]; then
|
||||||
fi
|
fi
|
||||||
start_viewer
|
start_viewer
|
||||||
else
|
else
|
||||||
|
echo "${VMNAME}"
|
||||||
|
echo " - Process: Already running ${VM} as ${VMNAME} (${VM_PID})"
|
||||||
parse_ports_from_file
|
parse_ports_from_file
|
||||||
start_viewer
|
start_viewer
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue