Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Tips needed: restarting tomcat without risk of java.net.BindException

Mikolaj Rydzewski

2006-11-17

Replies:

Bryce Nesbitt wrote:
> Do we have to wait at least 20 seconds to be sure the port is clear?
>  
The easiest thing is to do 'killall -9 java' ;-)

I run Tomcat under its own account. And restart script looks like this:

#!/bin/sh
~/bin/shutdown.sh
sleep 10
killall -9 java
~/bin/startup.sh

There's no risk of killing other's people java processes, because this
script is run under tomcat user account.

--
Mikolaj Rydzewski <miki@(protected)>


Attachment: smime.p7s
©2008 junlu.com - Jax Systems, LLC, U.S.A.