From owner-freebsd-questions Thu Jun 29 14:39:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.nwlink.com (smtp.nwlink.com [209.20.130.57]) by hub.freebsd.org (Postfix) with ESMTP id 4BCA837C406 for ; Thu, 29 Jun 2000 14:39:10 -0700 (PDT) (envelope-from jcwells@nwlink.com) Received: from utah (jcwells@utah.nwlink.com [209.20.130.41]) by smtp.nwlink.com (8.9.3/8.9.3) with SMTP id OAA10391; Thu, 29 Jun 2000 14:38:59 -0700 (PDT) Date: Thu, 29 Jun 2000 14:50:35 -0700 (PDT) From: custom X-Sender: jcwells@utah To: Drew Sanford Cc: questions@FreeBSD.ORG Subject: Re: Zero'ing out files In-Reply-To: <395BAFAC.2769ADA5@planetwe.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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.) > (is there a way to make newsyslog work for this?) then you can answer > that one two if you like. My git instinct is that I'm going to have to > write a script and let cron run it, because I simply haven't seen > anything besides newsyslog that archives the old logs. Thanks in advance > for any help you can offer. There is the logrotate port that does this. Later, Jason C. Wells To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message