Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 35301 invoked from network); 24 Aug 2009 16:53:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Aug 2009 16:53:30 -0000 Received: (qmail 45414 invoked by uid 500); 24 Aug 2009 15:01:51 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 45371 invoked by uid 500); 24 Aug 2009 15:01:51 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 45360 invoked by uid 99); 24 Aug 2009 15:01:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2009 15:01:51 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.30.96] (HELO QMTA09.emeryville.ca.mail.comcast.net) (76.96.30.96) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2009 15:01:40 +0000 Received: from OMTA12.emeryville.ca.mail.comcast.net ([76.96.30.44]) by QMTA09.emeryville.ca.mail.comcast.net with comcast id YDp21c0020x6nqcA9F1KXJ; Mon, 24 Aug 2009 15:01:19 +0000 Received: from [192.168.1.101] ([69.143.128.194]) by OMTA12.emeryville.ca.mail.comcast.net with comcast id YF1H1c00B4BnRt98YF1JwN; Mon, 24 Aug 2009 15:01:19 +0000 Message-ID: <4A92AB3C.2030309@christopherschultz.net> Date: Mon, 24 Aug 2009 11:01:16 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Clearing the catalina.out file References: <4A8525D8.128C.0068.0@matc.edu> <680cbe0e0908140713n53c93253r37673d7019106619@mail.gmail.com> <4A852C0B.128C.0068.0@matc.edu> <4A8578ED.1010806@christopherschultz.net> <4A85372B.128C.0068.0@matc.edu> <4A85817C.1080201@christopherschultz.net> <4A853E7D.128C.0068.0@matc.edu> <022d01ca1cff$0384bf30$0a8e3d90$@com> <4A8597F0.5050205@christopherschultz.net> <027701ca1d0e$f1069ad0$d313d070$@com> In-Reply-To: <027701ca1d0e$f1069ad0$d313d070$@com> X-Enigmail-Version: 0.96a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 George, On 8/14/2009 2:42 PM, George Sexton wrote: >> Sure it will. Check the "copytruncate" option. > > That's an interesting option. It seems fraught with danger, but I > tested it and it does work. Yes, it is fraught with danger. But, if you want to use stdout/stderr and refuse to take other steps, it's basically what you're left with. >> What part of that doesn't work? > > The part about new data appearing. On one of my production servers, I > erased catalina.out. Note that truncation and deletion are not the same. > I then invoked a JSP that generated output to > system.out. The file catalina.out did not magically appear. Of course not: you're writing to a valid file handle whose directory entry has been unlinked. Why would the file magically reappear? > No data > was magically written to the file. I went into proc for the PID for > JSVC, and looked at the File Descriptors. Sure enough, if I look in > the FD directory, FD 1 shows deleted. If I examine the contents of > the file descriptor, the test data is appended to the end of the > file. Sounds right to me. > It doesn't work. What you tried doesn't work. I didn't suggest what you tried. > I make these statements because I know what I > observe. I've also been using Linux since something like 1997 so I've > got a fair amount of experience there too. So, your straw man has a big swingin' tool, too? > Perhaps we observe different results because I'm using JSVC. No, we observe different results because we're doing different things. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqSqzwACgkQ9CaO5/Lv0PB7YQCfXhUbusH1dEzxDFZmkR25jL4b ceQAn1OEw4YX7YPCEbxaXuEWdZiEsZL/ =p3xw -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org