It is a little nasty, but I have modified the /usr/bin/tomcat script
that comes with the
RPM version of Tomcat 3.1 to allow redirection of System.err to a log
file.

It is a very simple patch, but one that I have already found useful.

Obviously it will only be of use to those who wish to use the tomcat
script
to <start>, not to <run> the tomcat program.

I thought some of you might find it of use.

Cheers
Jason
--
Jason Pell
Senior Analyst/Programmer
Deakin Software Services Pty Ltd
12 Gheringhap St, Geelong Victoria 3220 Australia
Phone: 03 5227 8858 International: +61 3 5227 8858
Fax: 03 5227 8907 International: +61 3 5227 8907
E-mail [EMAIL PROTECTED]
http://www.dssonline.com.au
Customer Support Hotline: 1800 620 497

"Callista - the brightest solution in university management"

---------------------------------------------------------------
Important Notice: The contents of this email transmission,
including attachments, may be privileged and confidential.
Any unauthorised use of the contents is expressly prohibited.
If you have received this transmission in error, please advise
the sender by return email or telephone immediately and
destroy all versions.
---------------------------------------------------------------

62a63,65
> ## Write java System.err to this logfile.
> SYSTEM_ERR_LOGFILE="$TOMCAT_HOME/logs/tomcat.system.err.log"
> 
121c124,130
<   $JAVACMD $TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME}  
org.apache.tomcat.startup.Tomcat "$@" &
---
> 
>   # Write System.err to a logfile.
>   if [ "$SYSTEM_ERR_LOGFILE" != "" ]; then
>     $JAVACMD $TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME}  
>org.apache.tomcat.startup.Tomcat "$@" 2> $SYSTEM_ERR_LOGFILE &
>   else
>     $JAVACMD $TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME}  
>org.apache.tomcat.startup.Tomcat "$@" &
>   fi

Reply via email to