From owner-freebsd-questions Fri Jun 30 13:57:57 2000 Delivered-To: freebsd-questions@freebsd.org Received: from nisser.com (c1870039.telekabel.chello.nl [212.187.0.39]) by hub.freebsd.org (Postfix) with ESMTP id 609A337B658 for ; Fri, 30 Jun 2000 13:57:47 -0700 (PDT) (envelope-from roelof@nisser.com) Received: from nisser.com (roelof [10.0.0.2]) by nisser.com (8.9.3/8.9.2) with ESMTP id WAA82733; Fri, 30 Jun 2000 22:56:53 +0200 (CEST) (envelope-from roelof@nisser.com) Message-ID: <395D09B4.64AE90B7@nisser.com> Date: Fri, 30 Jun 2000 22:57:24 +0200 From: Roelof Osinga Organization: eboa - engineering buro Office Automation X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: custom Cc: Drew Sanford , questions@FreeBSD.ORG Subject: Re: Zero'ing out files References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG custom wrote: > > On Thu, 29 Jun 2000, Drew Sanford wrote: > > > Is there a way to zero out a file, and still leave it open, say for an > > apache access log? If there is a simple way to rotate the access logs > > Apache docs specifically warn against zeroing out files while the process > is running. (at least they did the last time I read up on this.) It's ok to do, as long as you signal the daemons that the logfile has been tampered with. By giving it a SIGHUP. Roelof -- ----------------------------------------------------------------------- Eboa (ingenieursburo Office Automation) web. http://eboa.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message