dom0/init: Do not exclude NetVM at shutdown (#396)

In fact all VMs can be stopped at the same time, no need to keep order.
Also use qvm-shutdown to do it.
Esse commit está contido em:
Marek Marczykowski 2012-01-16 03:26:39 +01:00
commit cd64f8287c
2 arquivos alterados com 2 adições e 7 exclusões

Ver arquivo

@ -61,11 +61,7 @@ start()
stop()
{
echo -n $"Shutting down all Qubes VMs:"
NETVM=$(qvm-get-default-netvm)
if [ "X"$NETVM = "X" ] ; then
NETVM="dom0"
fi
qvm-run -q --shutdown --all --wait --exclude $NETVM
qvm-shutdown -q --all --wait
rm -f /var/lock/subsys/qubes_core
killall meminfo-writer
killall qmemman_daemon.py

Ver arquivo

@ -58,10 +58,9 @@ stop()
echo -n $"Doing nothing:"
else
echo -n $"Stopping NetVMs:"
for VM in `get_running_netvms`; do
qvm-run -q --force --shutdown --wait $VM
qvm-shutdown -q --force --wait $VM
done
fi