From owner-freebsd-questions@FreeBSD.ORG Thu Jun 1 07:16:12 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 DD70D16AB76 for ; Thu, 1 Jun 2006 07:16:12 +0000 (UTC) (envelope-from rihad@mail.ru) Received: from f21.mail.ru (f21.mail.ru [194.67.57.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6598F43D46 for ; Thu, 1 Jun 2006 07:16:12 +0000 (GMT) (envelope-from rihad@mail.ru) Received: from mail by f21.mail.ru with local id 1FlhPc-000PgD-00 for freebsd-questions@freebsd.org; Thu, 01 Jun 2006 11:16:08 +0400 Received: from [217.25.25.67] by win.mail.ru with HTTP; Thu, 01 Jun 2006 11:16:08 +0400 From: =?koi8-r?Q?=F2=C9=C8=C1=C4=20=E7=C1=C4=D6=C9=C5=D7?= To: freebsd-questions@freebsd.org Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [217.25.25.67] Date: Thu, 01 Jun 2006 11:16:08 +0400 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Subject: newsyslog.conf wrong count of archive logs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?koi8-r?Q?=F2=C9=C8=C1=C4=20=E7=C1=C4=D6=C9=C5=D7?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 07:16:14 -0000 I'm using newsyslog (FreeBSD 6.0-RELEASE-p6) to manage Apache's monthly log files. The relevant /etc/newsyslog.conf entry is # logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] /var/log/httpd/*log root:wheel 644 2 * $M1D3 GB /var/run/httpd.pid 30 newsyslog.conf(5) says: count Specify the maximum number of archive files which may exist. This does not consider the current log file. But there already are 3 months worth of archive logs (*.0 *.1 *.2), excluding the current log. What did I do wrong? Thank you.