Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 6481 invoked from network); 15 Nov 2004 21:59:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Nov 2004 21:59:57 -0000 Received: (qmail 92442 invoked by uid 500); 15 Nov 2004 21:59:23 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 92385 invoked by uid 500); 15 Nov 2004 21:59:22 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 92340 invoked by uid 99); 15 Nov 2004 21:59:22 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=HTML_40_50,HTML_MESSAGE,MIME_HTML_NO_CHARSET X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [66.46.24.147] (HELO shareowner.com) (66.46.24.147) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 15 Nov 2004 13:59:21 -0800 Received: from exchange.int.shareowner.com (gw.shareowner.com [66.46.24.163]) by shareowner.com (Postfix) with ESMTP id 0ED5A23619 for ; Mon, 15 Nov 2004 16:59:23 -0500 (EST) Received: by exchange.int.shareowner.com with Internet Mail Service (5.5.2656.59) id ; Mon, 15 Nov 2004 16:59:19 -0500 Message-ID: From: Phillip Qin To: 'Tomcat Users List' Subject: RE: Rotating catalina.out with Webmin Date: Mon, 15 Nov 2004 16:59:18 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4CB5E.5AC2D9A0" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C4CB5E.5AC2D9A0 Content-Type: text/plain 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 | /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" To: 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! ------_=_NextPart_001_01C4CB5E.5AC2D9A0--