From owner-freebsd-stable@FreeBSD.ORG Fri Nov 25 02:26:10 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8984416A41F for ; Fri, 25 Nov 2005 02:26:10 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (ppp166-27.static.internode.on.net [150.101.166.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6ADC843D7D for ; Fri, 25 Nov 2005 02:26:09 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (localhost [127.0.0.1]) by vault.mel.jumbuck.com (Postfix) with ESMTP id D3B568A063; Fri, 25 Nov 2005 13:25:59 +1100 (EST) Received: from [192.168.46.52] (unknown [192.168.46.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vault.mel.jumbuck.com (Postfix) with ESMTP id B8A568A023; Fri, 25 Nov 2005 13:25:59 +1100 (EST) Message-ID: <4386763F.9070507@roq.com> Date: Fri, 25 Nov 2005 13:26:07 +1100 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.12) Gecko/20051110 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ladislav Bodnar References: <200511250845.43542.distro.watch@msa.hinet.net> In-Reply-To: <200511250845.43542.distro.watch@msa.hinet.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-stable@freebsd.org Subject: Re: Rotating web server logs without restarting Apache X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2005 02:26:10 -0000 Ladislav Bodnar wrote: >Hi, > >Every time my httpd-access.log file is rotated I need to restart Apache, >otherwise it won't write into the new httpd-access.log file. > >Is there a way for Apache (version 2.0.55 on FreeBSD 6.0) to write to the >new log file without the need to restart it? I restart it routinely from a >cron job, but occasionally Apache fails to restart (or more precisely, if >fails to shutdown completely before it is told to come up again). > >Thank you very much for your help. >_______________________________________________ > > Maybe I am missing something here but can't you use rotatelogs? I use it to rotate logs every day with apache2 and I never restart Apache. Mike