All, I'm not sure if this is worthwhile for anyone else but my company but myself and a coworker (Jason Maderios <[EMAIL PROTECTED]>) wrote a patch that saves the contents of the /var/log/tomcat3/tomcat.log file when tomcat is shutdown just in case we ever need the contents for future reference. Here is the patch:
--- /etc/rc.d/init.d/tomcat3 Thu Jan 17 07:53:21 2002 +++ /etc/rc.d/init.d/tomcat3 Thu Apr 18 10:21:33 2002 @@ -79,6 +79,14 @@ else su - $TOMCAT_USER -c "$TOMCAT_SCRIPT stop" fi + # Added so we keep the tomcat.log around for reference + LOGPATH=/var/log/tomcat3 + LOGFILE=tomcat.log + if [ -f $LOGPATH/$LOGFILE ]; then + FILENAME="$LOGFILE-`date +%H_%M_%S_%a_%e_%b_%Y`" + cp -f $LOGPATH/$LOGFILE $LOGPATH/$FILENAME + gzip -9 $LOGPATH/$FILENAME + fi RETVAL=$? echo [ $RETVAL = 0 ] && rm -f /var/lock/subsys/tomcat3 /var/run/tomcat3.pid Feel free to use it if you like it. This patch was built against the rc script from the 3.3a RPMs. Thanks, Jason Corley, UNIX/Linux System Administrator TogetherSoft Corporation 900 Main Campus Drive, Suite 500 Raleigh, NC 27606 o: 1-919-833-5550 x1531, m: 1-919-795-3703 [EMAIL PROTECTED] TogetherSoft's mission is "improving the ways people work together." Our flagship product, Together ControlCenter, is the Model-Build-Deploy Platform. http://www.togethersoft.com/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>