From owner-freebsd-isp Tue May 18 15:26:32 1999 Delivered-To: freebsd-isp@freebsd.org Received: from shell.futuresouth.com (shell.futuresouth.com [198.78.58.28]) by hub.freebsd.org (Postfix) with ESMTP id BAEA015073 for ; Tue, 18 May 1999 15:26:14 -0700 (PDT) (envelope-from fullermd@futuresouth.com) Received: (from fullermd@localhost) by shell.futuresouth.com (8.9.3/8.9.3) id RAA09570; Tue, 18 May 1999 17:25:37 -0500 (CDT) Date: Tue, 18 May 1999 17:25:37 -0500 From: "Matthew D. Fuller" To: Graeme Tait Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Web Statistics break up program. Message-ID: <19990518172537.B1539@futuresouth.com> References: <374165EF.1BB22A14@eclipse.net.uk> <37419A1F.5FD5@echidna.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <37419A1F.5FD5@echidna.com>; from Graeme Tait on Tue, May 18, 1999 at 09:49:35AM -0700 X-OS: FreeBSD Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, May 18, 1999 at 09:49:35AM -0700, a little birdie told me that Graeme Tait remarked > > mv httpd-access.log httpd-access.log.$TODAY > > (within the one filesystem). > > Apache continues to append to the renamed file until signalled - it > doesn't start a new file. > > I assume that what's happening here is that the inode number of the file > is what counts, and the inode number is unchanged in the mv. Actually, it's because Apache never closes the logfile, and the file descriptor it open()'d will point to that file wherever you mv it. A SIGHUP to Apache will make it close() and open() the logfile again, so if you move it out of the way and resignal it, it will DTRT. -- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | Matthew Fuller MF4839 http://www.over-yonder.net/ | * fullermd@futuresouth.com fullermd@over-yonder.net * | UNIX Systems Administrator Specializing in FreeBSD | * FutureSouth Communications ISPHelp ISP Consulting * | "The only reason I'm burning my candle at both ends, | * is because I haven't figured out how to light the * | middle yet" | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message