ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krishna Mohan Attravanam <akm_cyg...@yahoo.co.in>
Subject Waiting for a server to shutdown using waitFor
Date Wed, 23 May 2007 20:01:05 GMT
Hi all,

I am using the following tasks within a target that
check to see if the servers are shutdown or not?

<waitfor maxwait="120" maxwaitunit="second"
timeoutproperty="servers.still.running"
checkevery="10">
 <and>
    <not><socket server="${server1.host}"
port="${server1.port}"/></not>
    <not><socket server="${server2.host}"
port="${server2.port}"/></not>
    <not><socket server="${server3.host}"
port="${server3.port}"/></not>
  </and>
</waitfor>

My question is: Is there a deterministic way of
finding out if the server has shutdown completely?
What if the timeout value is not sufficient ? Any
thoughts ?

Thanks
K

_____________________________________________________
*Half of being smart is knowing what you're dumb at
*To err is human--and to blame it on a computer is even more so
*Gravity is not responsible for people falling in love


		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message