tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cindy Ballreich <ci...@ballreich.net>
Subject RE: strange shut down problem - solution?
Date Wed, 22 May 2002 16:01:29 GMT
At 05:45 PM 5/21/02 -0700, Subir Sengupta wrote:
>This is a documented bug.  Apparently if there is a non Daemon thread
>running Tomcat won't shut down cleanly.
>
>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8700
>

Hmmm. That sure sounds like what's happening on my system. I guess catalina.sh is called as
daemon in the init.d script, but it's not starting the threads as deamon. Is this what's happening?

At 10:13 AM 5/22/02 +0200, Mats Nyberg wrote:
>and a guru told me to
>
>  [tim-mn@spiderman src]$ ps -Af|awk '{ if ($3 == "1") { print ; } }' 
>|grep $JAVA_HOME|awk '{ print $2}'

This is basically the "solution" that I used. 
I added this line to the start section of my init.d script...
ps -Af | awk '{ if ($3 == "1") { print ; } }' | grep tomcat | awk '{ print $2}' > /var/run/tomcat4.pid

And these lines to the stop section...
if [ -s /var/run/tomcat4.pid ] ; then
    PID=`cat /var/run/tomcat4.pid`
    kill $PID
fi

This works, but it seems like a horrible kludge to me. Does anyone have any better solutions?

Cindy

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message