From owner-freebsd-stable@FreeBSD.ORG Fri Nov 25 14:28:33 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 798FC16A41F for ; Fri, 25 Nov 2005 14:28:33 +0000 (GMT) (envelope-from geralddelapascua@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85E8E43D46 for ; Fri, 25 Nov 2005 14:28:32 +0000 (GMT) (envelope-from geralddelapascua@gmail.com) Received: by nproxy.gmail.com with SMTP id l23so327366nfc for ; Fri, 25 Nov 2005 06:28:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references; b=rIC8h+VGxmPjshTSxRk5MDZUrdmSW8yDgtctQyadzElNlaYawY5v7x419uERdPOOV6lDK2f3Rk/YpgFwI86YTI129QmFX0MAbHrRXzkiQnqntT+JLY41w1N00C1A1QDhCjI3or4JyWlb3yrImdbyhMHAstPUgdn1RZXZv/sf2Tc= Received: by 10.48.163.1 with SMTP id l1mr87192nfe; Fri, 25 Nov 2005 06:28:31 -0800 (PST) Received: by 10.48.108.7 with HTTP; Fri, 25 Nov 2005 06:28:31 -0800 (PST) Message-ID: <1bcf5ef90511250628l6da1a5ex863f1feed8faaedb@mail.gmail.com> Date: Fri, 25 Nov 2005 14:28:31 +0000 From: Gerald de la Pascua Sender: geralddelapascua@gmail.com To: Luke Hollins In-Reply-To: <4386FF87.9070506@pathcom.com> MIME-Version: 1.0 References: <200511250845.43542.distro.watch@msa.hinet.net> <4386FF87.9070506@pathcom.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 14:28:33 -0000 I usally just copy the file and then echo > /var/log/apache/httpd_log and apache doesn't seem to need to be restarted, thanks Gerald On 11/25/05, Luke Hollins wrote: > > 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 th= e > >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, i= f > >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 > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >