From owner-freebsd-stable@FreeBSD.ORG Fri Nov 25 12:11:38 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 679EF16A41F for ; Fri, 25 Nov 2005 12:11:38 +0000 (GMT) (envelope-from lwh@pathcom.com) Received: from smtp.tor.pathcom.com (smtp.tor.pathcom.com [209.250.128.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A0C543D79 for ; Fri, 25 Nov 2005 12:11:36 +0000 (GMT) (envelope-from lwh@pathcom.com) Received: from [207.188.64.76] (luke@rdsl-0588.tor.pathcom.com [207.188.64.76] (may be forged)) by smtp.tor.pathcom.com (8.13.5/8.12.6) with ESMTP id jAPCBa3m014061 for ; Fri, 25 Nov 2005 07:11:36 -0500 Message-ID: <4386FF87.9070506@pathcom.com> Date: Fri, 25 Nov 2005 07:11:51 -0500 From: Luke Hollins User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051112) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <200511250845.43542.distro.watch@msa.hinet.net> In-Reply-To: <200511250845.43542.distro.watch@msa.hinet.net> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 12:11:38 -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). > > > If you send it kill -USR1 instead of restarting it, it will close and re-open the logfile(s). -- PGP: http://www.pathcom.com/~lwh/lwh@pathcom.com.asc