RE: How to make Tomcat shutdown itself if the address it is trying to bind is already in use.

2007-11-30 Thread Shaji Thomas
. Thanks a lot for the suggestions and links. I really appreciate it. Shaji -Original Message- From: Gregor Schneider [mailto:[EMAIL PROTECTED] Sent: Thursday, November 29, 2007 3:27 AM To: Tomcat Users List Subject: Re: How to make Tomcat shutdown itself if the address it is trying to bind is

Re: How to make Tomcat shutdown itself if the address it is trying to bind is already in use.

2007-11-29 Thread Gregor Schneider
Shaji, maybe this will do the trick: http://tomcat.apache.org/faq/security.html#8005 Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 --

RE: How to make Tomcat shutdown itself if the address it is trying to bind is already in use.

2007-11-28 Thread Shaji Thomas
eider [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 28, 2007 8:10 AM To: Tomcat Users List Subject: Re: How to make Tomcat shutdown itself if the address it is trying to bind is already in use. if [ -z "$(netstat -lnp | grep 8080)" ] then echo "Tomcat running" ex

Re: How to make Tomcat shutdown itself if the address it is trying to bind is already in use.

2007-11-28 Thread Gregor Schneider
if [ -z "$(netstat -lnp | grep 8080)" ] then echo "Tomcat running" exit -1 else [ continue with startup-script ] fi do the same for port 8009 (AJP) however, the best way would be to first check if tomcat is running before starting it up remember: a fool with a tool is still a fo