Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2000 14:50:35 -0700 (PDT)
From:      custom <jcwells@nwlink.com>
To:        Drew Sanford <drew@planetwe.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Zero'ing out files
Message-ID:  <Pine.SOL.3.96.1000629144715.21744B-100000@utah>
In-Reply-To: <395BAFAC.2769ADA5@planetwe.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.96.1000629144715.21744B-100000>