On May 9, 2008, at 1:43 PM, Caldarale, Charles R wrote:
>> From: Robert Koberg [mailto:
rob@...]
>> Subject: RE: logging catalina.out and localhost-##.log - don't append
>>
>> I am starting/stopping from a console with ./bin/startup.sh
>
> So modify the script (or wrapper it) to do "rm -f ./logs/*" and you're
> done.
Of course, if you need to restart your tomcat immediately and look at
your old logs to debug a problem - or if someone else does a year
from now.
It will drive you nuts wondering where they went. In this case you
can do a log rotate something like this:
#!/bin/sh
DIR=/export/home/apachecat
file='/export/home/apachecat/tomcat/logs/catalina.out'
for num in 5 4 3 2 1 0; do
pnum=`expr $num + 1`
mv $file.$num $file.$pnum
done
mv $file $file.0
Regards,
Dave
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
> PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-
> mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
users@...
> To unsubscribe, e-mail:
users-unsubscribe@...
> For additional commands, e-mail:
users-help@...
>
>
---------------------------------------------------------------------
To start a new topic, e-mail:
users@...
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...