Re: Rotating catalina.out with Webmin

2004-11-15 Thread Filip Hanik - Dev
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

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Shapira, Yoav
this all applies to Tomcat 5.0.x and older, not to 5.5 and newer) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 3:19 PM To: Tomcat Users List Subject: Re: Rotating catalina.out with Webmin if you

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Carlos Oliva
Default Should not this maintain the file handle? -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 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

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Phillip Qin
I found that logrotate is the easiest. -Original Message- From: Carlos Oliva [mailto:[EMAIL PROTECTED] 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

Re: Rotating catalina.out with Webmin

2004-11-15 Thread Filip Hanik - Dev
] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, November 15, 2004 2:28 PM 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

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Carlos Oliva
catalina.out with Webmin I found that logrotate is the easiest. -Original Message- From: Carlos Oliva [mailto:[EMAIL PROTECTED] 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

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Phillip Qin
} -Original Message- From: Carlos Oliva [mailto:[EMAIL PROTECTED] 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

Re: Rotating catalina.out with Webmin

2004-11-15 Thread erh
On Mon, Nov 15, 2004 at 02:36:57PM -0600, Filip Hanik - Dev wrote: nope, the moment you execute the mv the file handle has moved. switch to cronolog to save you some time, cronolog might recreate the file for you to, so no handle is ever lost, try it before you come back to the list :)

Re: Rotating catalina.out with Webmin

2004-11-15 Thread Filip Hanik - Dev
: Re: Rotating catalina.out with Webmin On Mon, Nov 15, 2004 at 02:36:57PM -0600, Filip Hanik - Dev wrote: nope, the moment you execute the mv the file handle has moved. switch to cronolog to save you some time, cronolog might recreate the file for you to, so no handle is ever lost, try

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Carlos Oliva
Hi Phillip, Why do you re-create the file? Is it not enough to truncate it? -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] 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

RE: Rotating catalina.out with Webmin

2004-11-15 Thread Phillip Qin
I don't remember. I think logrotate recreates it anyway. -Original Message- From: Carlos Oliva [mailto:[EMAIL PROTECTED] 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

Re: Rotating catalina.out with Webmin

2004-11-15 Thread erh
On Mon, Nov 15, 2004 at 03:39:01PM -0600, Filip Hanik - Dev wrote: this was not the case when using a java.io.FileOutputStream(), so I assume you tried and verified this :) You are confused. It _is_ the case with FileOutputStream. The only way it could be otherwise is if the output