From owner-freebsd-stable@FreeBSD.ORG Fri Nov 25 01:18:58 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 8111D16A41F for ; Fri, 25 Nov 2005 01:18:58 +0000 (GMT) (envelope-from pmurray@nevada.net.nz) Received: from bellagio.open2view.com (ns2.open2view.com [203.97.20.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD86443D67 for ; Fri, 25 Nov 2005 01:18:57 +0000 (GMT) (envelope-from pmurray@nevada.net.nz) Received: from localhost (localhost [127.0.0.1]) by bellagio.open2view.com (Postfix) with ESMTP id 90ADB61088; Fri, 25 Nov 2005 14:21:47 +1300 (NZDT) Received: from bellagio.open2view.com ([127.0.0.1]) by localhost (bellagio.open2view.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 91433-09; Fri, 25 Nov 2005 14:21:45 +1300 (NZDT) Received: from [10.58.3.145] (222-153-67-4.jetstream.xtra.co.nz [222.153.67.4]) by bellagio.open2view.com (Postfix) with ESMTP id 16F9E610B6; Fri, 25 Nov 2005 14:21:45 +1300 (NZDT) In-Reply-To: <200511250845.43542.distro.watch@msa.hinet.net> References: <200511250845.43542.distro.watch@msa.hinet.net> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <11EEE0FE-A7DC-4585-BF05-6FE3B73D5D97@nevada.net.nz> Content-Transfer-Encoding: 7bit From: Philip Murray Date: Fri, 25 Nov 2005 14:18:51 +1300 To: Ladislav Bodnar X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: amavisd-new at open2view.com 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 01:18:58 -0000 On 25/11/2005, at 1:45 PM, Ladislav Bodnar wrote: > 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). Look at sysutils/cronolog in ports. Apache logs to cronolog via a pipe and cronolog will do rotation for you without needing to restart Apache. Cheers Phil