Re: svn commit: r1002263 - /tomcat/trunk/bin/catalina.sh

2010-09-29 Thread Mladen Turk
On 09/29/2010 10:51 AM, Rainer Jung wrote: On 28.09.2010 19:41, Mladen Turk wrote: Next the code > echo "Tomact stopped but PID file could not be removed ($CATALINA_PID)." Will fail on shells that handle ( ...) like ` ... ` Just as an info: you can use echo 'Tomcat stopped but PID file could

Re: svn commit: r1002263 - /tomcat/trunk/bin/catalina.sh

2010-09-29 Thread Rainer Jung
On 28.09.2010 19:41, Mladen Turk wrote: Next the code > echo "Tomact stopped but PID file could not be removed ($CATALINA_PID)." Will fail on shells that handle ( ...) like ` ... ` Just as an info: you can use echo 'Tomcat stopped but PID file could not be removed ('$CATALINA_PID').' (one l

Re: svn commit: r1002263 - /tomcat/trunk/bin/catalina.sh

2010-09-28 Thread Mladen Turk
On 09/28/2010 06:59 PM, ma...@apache.org wrote: Author: markt +PID="`cat "$CATALINA_PID"`" +if ps -p $PID> /dev/null; then + echo "Tomcat appears to still be running with PID $PID. Start aborted." + exit 1 if $CATALINA_PID points to the file that has invalid

Re: svn commit: r1002263 - /tomcat/trunk/bin/catalina.sh

2010-09-28 Thread Mladen Turk
On 09/28/2010 06:59 PM, ma...@apache.org wrote: Author: markt Date: Tue Sep 28 16:59:54 2010 New Revision: 1002263 URL: http://svn.apache.org/viewvc?rev=1002263&view=rev Log: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49728 Improve PID file handling, particularly when another process