From owner-freebsd-stable@FreeBSD.ORG Sat Nov 26 00:38:19 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 0058B16A41F for ; Sat, 26 Nov 2005 00:38:18 +0000 (GMT) (envelope-from dan@ferrarishields.com) Received: from ferrarishields.com (ferrarishields.com [216.82.146.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFC6343D5E for ; Sat, 26 Nov 2005 00:38:18 +0000 (GMT) (envelope-from dan@ferrarishields.com) Received: from Dan (dan [10.70.153.5]) by ferrarishields.com (Postfix) with SMTP id 5F4927301A; Fri, 25 Nov 2005 16:38:18 -0800 (PST) Message-ID: <007601c5f221$b0d9e640$0599460a@Dan> From: "Dan O'Connor" To: "Ladislav Bodnar" , References: <200511250845.43542.distro.watch@msa.hinet.net> Date: Fri, 25 Nov 2005 16:38:14 -0800 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Cc: 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: Sat, 26 Nov 2005 00:38:19 -0000 > 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. In /etc/newsyslog.conf: /var/log/httpd-access.log 644 4 100 * J /var/run/httpd.pid 30 /var/log/httpd-error.log 644 4 100 * J /var/run/httpd.pid 30 This will signal apache to do a graceful restart following a log rotation... ~Dan