Date: Tue, 7 Aug 2001 09:20:06 +1200 From: Jonathan Chen <jonathan.chen@itouch.co.nz> To: Marius Kirschner <marius@agoron.com> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: rotating web logs Message-ID: <20010807092006.C59676@itouchnz.itouch> In-Reply-To: <NEBBKGPPOLDBPJPLMKDICENMGEAA.marius@agoron.com>; from marius@agoron.com on Mon, Aug 06, 2001 at 03:48:01PM -0400 References: <NEBBKGPPOLDBPJPLMKDICENMGEAA.marius@agoron.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 06, 2001 at 03:48:01PM -0400, Marius Kirschner wrote:
> I was wondering, what do people use to rotate the apache web logs? I
> noticed there a "rotatelogs" command but this one doesn't work from the
> command line apparenly and I'd like to schedule a cron job to do that.
> Thanks,
The base system has a utility called newsyslog(8) that works fine.
Edit /etc/newsyslog.conf and add entries something like:
/var/log/httpd-access.log 644 5 200 * - /var/run/httpd.pid
/var/log/httpd-error.log 644 5 200 * - /var/run/httpd.pid
to it.
--
Jonathan Chen <jonathan.chen@itouch.co.nz>
----------------------------------------------------------------------
Opportunities are seldom labeled
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?20010807092006.C59676>
