From owner-freebsd-questions@FreeBSD.ORG Tue Mar 10 16:01:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36527106566B for ; Tue, 10 Mar 2009 16:01:25 +0000 (UTC) (envelope-from robin@reportlab.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id C8A8C8FC0C for ; Tue, 10 Mar 2009 16:01:24 +0000 (UTC) (envelope-from robin@reportlab.com) Received: by ey-out-2122.google.com with SMTP id d26so269673eyd.7 for ; Tue, 10 Mar 2009 09:01:23 -0700 (PDT) Received: by 10.216.45.78 with SMTP id o56mr2791227web.152.1236699514179; Tue, 10 Mar 2009 08:38:34 -0700 (PDT) Received: from ?192.168.0.3? (host-82-44-127-245.static.telewest.net [82.44.127.245]) by mx.google.com with ESMTPS id 28sm5299971eye.29.2009.03.10.08.38.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 10 Mar 2009 08:38:33 -0700 (PDT) Message-ID: <49B6897D.3060508@chamonix.reportlab.co.uk> Date: Tue, 10 Mar 2009 15:38:37 +0000 From: Robin Becker User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: problem rotating apache logs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2009 16:01:25 -0000 I'm trying to get newsyslog to rotate my apache2 logs (this in 7.0 & 7.1 release). I added this to the end of newsyslog.conf /var/log/httpd-*.log 644 9 8 @T01 BG /var/run/httpd.pid 30 this is what is currently working for me in 6.0 & 6.1. Signal 30 is supposed to be USR1 which is intended to cause a graceful restart. However, I find that although I do get a rotated log file the new logs always seem to be empty. The logs seem to start growing only after I restart the apache server. What am I doing wrong? -- Robin Becker