tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <j...@socialchange.net.au>
Subject Re: Diff to redirect System.err to a logfile!
Date Wed, 06 Dec 2000 07:47:43 GMT
Yes, there were problems with 3.2beta Tomcat RPMs not sending
stderr/stdout anywhere. It's fixed in tomcat-3.2-*.rpm.

Specifically, if one invoked tomcat with `/etc/rc.d/init.d/tomcat start`,
stderr and stdout didn't end up in /var/log/messages as expected. I think
it's a bug with 'initlog'. Anyway, the workaround is to change the 
line in /etc/rc.d/init.d/tomcat:

daemon tomcat start

to:

initlog -c "tomcat run" &


Or just upgrade RPMs :)

--Jeff



On Wed, 6 Dec 2000, Jason Pell wrote:

> 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 Jason.Pell@dssonline.com.au
> 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.
> ---------------------------------------------------------------
> 
> 


Mime
View raw message