Date: Tue, 7 Aug 2001 09:29:05 +0100 (BST) From: Alex Dyas <alex@twowaytv.co.uk> To: Rob Hudson <rob@euglug.net> Cc: <questions@freebsd.org> Subject: Re: rotating web logs Message-ID: <20010807092507.K78333-100000@r2d2.twowaytv.co.uk> In-Reply-To: <20010806130837.Y12705@cogit8.org>
next in thread | previous in thread | raw e-mail | index | archive | help
nice trick i've picked up is to do : cat /dev/null > /usr/local/apache/logs/access_log to clear out the old logs instead of bouncing the server. saves you any downtime and potential problems restarting apache. alex.. On Mon, 6 Aug 2001, Rob Hudson wrote: > I just use a perl script attached to a cron job. At the start of a > new month, it copies the combined_log for each virtual we host to > YYYY-MM.combined_log and restarts apache. Pretty simple. > > > On 20010806.1548, Marius Kirschner said ... > > > > 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, > > > > ---Marius > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > 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?20010807092507.K78333-100000>