From owner-freebsd-questions@FreeBSD.ORG Fri Jul 9 03:12:24 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F05616A4CE for ; Fri, 9 Jul 2004 03:12:24 +0000 (GMT) Received: from kende.com (ns1.kende.com [66.17.131.94]) by mx1.FreeBSD.org (Postfix) with SMTP id E931D43D48 for ; Fri, 9 Jul 2004 03:12:23 +0000 (GMT) (envelope-from andras@kende.com) Received: (qmail 1533 invoked by uid 0); 9 Jul 2004 03:12:36 -0000 Received: from unknown (HELO ak) (24.1.130.29) by ns1.kende.com with SMTP; 9 Jul 2004 03:12:36 -0000 From: "Andras Kende" To: "'Graham North'" , , "'Matthew Seaman'" Date: Thu, 8 Jul 2004 22:14:22 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <002401c4655c$ecd47640$627ba8c0@phoenix> Thread-Index: AcRlXazgmyXl/fx9Qze7J4UKUNQR7wABQ1OA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-Id: <20040709031223.E931D43D48@mx1.FreeBSD.org> cc: robert@irrelevant.com cc: tim@typhoon.techvalley.ca cc: 'Matthew Seaman' Subject: RE: Apache log rotation problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2004 03:12:24 -0000 -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Graham North Sent: Thursday, July 08, 2004 9:32 PM To: freebsd-questions@freebsd.org; Matthew Seaman Cc: robert@irrelevant.com; tim@typhoon.techvalley.ca; Matthew Seaman Subject: Apache log rotation problems Hello all: There has to be a simple fix to this problem - I am using newsyslog and cron to rotate my Apache logfiles. They get rotated and Apache keeps working however after a log rotation takes place Apache will not longer log my accesses. It does continue to serve pages but I need to do an apachectl restart in order for it to continue logging properly. newsyslog.conf and crontab files are attached for reference. Any help and suggestions greatly appreciated. Regards, Graham/ Hello, Try something like this: newsyslog.conf: /var/log/httpd-access.log 644 2 * @T00 B /var/run/httpd.pid 30 More info: http://www.freebsddiary.org/rotatelogs.php Best regards, Andras Kende http://www.kende.com