tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phillip Qin <Phillip....@shareowner.com>
Subject RE: Rotating catalina.out with Webmin
Date Mon, 15 Nov 2004 21:59:18 GMT
I don't remember. I think logrotate recreates it anyway.

-----Original Message-----
From: Carlos Oliva [mailto:carlos@pbsinet.com] 
Sent: November 15, 2004 4:55 PM
To: 'Tomcat Users List'
Subject: RE: Rotating catalina.out with Webmin


Hi Phillip,
Why do you re-create the file?  Is it not enough to truncate it?

-----Original Message-----
From: Phillip Qin [mailto:Phillip.Qin@shareowner.com] 
Sent: Monday, November 15, 2004 3:53 PM
To: 'Tomcat Users List'
Subject: RE: Rotating catalina.out with Webmin

I don't know how to use webadmin. I did it in command line (Debian)

/etc/logrotate.d


/usr/local/jakarta-tomcat-4.1.30/logs/catalina.out {
        rotate 5
        weekly
        compress
        delaycompress
        notifempty
        missingok
        create 0640 tu3404nl tu3404nl
}


-----Original Message-----
From: Carlos Oliva [mailto:carlos@pbsinet.com] 
Sent: November 15, 2004 3:37 PM
To: 'Tomcat Users List'
Subject: RE: Rotating catalina.out with Webmin


Hi Phillip,
Since Webmin uses logrotate could I just create a simple entry with Webmin?
Or do I need to specify other settings?

-----Original Message-----
From: Phillip Qin [mailto:Phillip.Qin@shareowner.com] 
Sent: Monday, November 15, 2004 3:31 PM
To: 'Tomcat Users List'
Subject: RE: Rotating catalina.out with Webmin

I found that logrotate is the easiest.

-----Original Message-----
From: Carlos Oliva [mailto:carlos@pbsinet.com] 
Sent: November 15, 2004 3:28 PM
To: 'Tomcat Users List'
Subject: RE: Rotating catalina.out with Webmin


Hi Filip,
I set-up the Webmin Log Rotation entry to the following:
1) Re-create log file after rotation? Yes, with mode  and owned by user and
group
   
2) Store old rotated logs in Directory   
Same directory as log file
Default (Same directory as log file)
  
3) Extension for rotated filenames  Default

Should not this maintain the file handle?

-----Original Message-----
From: Filip Hanik - Dev [mailto:devlists@hanik.com] 
Sent: Monday, November 15, 2004 3:19 PM
To: Tomcat Users List
Subject: Re: Rotating catalina.out with Webmin

if you dont get webmin fixed, I recommend cronolog instead.
You cant just rotate it, cause then tomcat loses the file handle, and you
will lose all further output.

with cronolog you simply pipe it through cronolog like this


<your java start command> | /usr/local/sbin/cronolog
"$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 

this will rotate the logs daily

Filip

----- Original Message ----- 
From: "Carlos" <Carlos@pbsinet.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, November 15, 2004 2:05 PM
Subject: Rotating catalina.out with Webmin


Hi Forum,

 

Could someone recommend settings for using the log rotation of Webmin in
order to rotate catalina.out (any cautionary measures)?  I just created an
entry in Webmin to rotate the catalina.out file weekly with all the default
settings (keeping the last four copies).  Are there any scripts I should run
before or after the rotation is carried out?



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


!DSPAM:419925d560433608341601!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message