A new option -w will tell MLN to monitor and wait for all the virtual
machines to shut down properly. This is for when one wants to
reboot the physical machine.
Some of this is already done un the upgrade function, where MLN
waits before it begins to modify the VM in question.
Also, in order for MLN not to wait forever on hanging VMs, one
should also issue a -T [seconds] which dictates how long MLN
should wait for the project to finish. If some hosts still are up after
[seconds] have elapsed, a stronger kill is sent causing an ungraceful
shutdown.
The exit variable of MLN should be 0 if the project shut down and 1
if it had to kill it after a timeout. Perhaps 2 if the project is down
aldready.
Logged In: YES
user_id=979671
there are two functions:
sub chackIfUp
and
sub checkIfAnyAreUp
They might be of help