From owner-freebsd-questions@FreeBSD.ORG Mon May 5 15:01:00 2003 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 F35C737B401 for ; Mon, 5 May 2003 15:00:59 -0700 (PDT) Received: from smtp3.server.rpi.edu (smtp3.server.rpi.edu [128.113.2.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F92743F93 for ; Mon, 5 May 2003 15:00:59 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp3.server.rpi.edu (8.12.9/8.12.9) with ESMTP id h45M0riJ023064; Mon, 5 May 2003 18:00:53 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20030505201718.M79790@enabled.com> References: <20030505175009.M97941@enabled.com> <20030505201718.M79790@enabled.com> Date: Mon, 5 May 2003 18:00:52 -0400 To: "admin" , freebsd-questions@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.28 Subject: Re: newbie: newsyslog ssl_engine_log rotation 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: Mon, 05 May 2003 22:01:00 -0000 At 12:17 PM -0800 5/5/03, admin wrote: >On Mon, 5 May 2003, Garance A Drosihn wrote > > At 9:51 AM -0800 5/5/03, admin wrote: > > >here is the /etc/newsyslog.conf entry >> > >> >--- snip --- >> > >> >/var/log/ssl_engine_log 640 10 @T00 * Z >> >/var/run/httpd.pid 30 >> > > > >--- snip --- > > > >newsyslog claims its skipping the file. can you explain >why this behavior is happening? > > >--- snip --- > >typhoon# newsyslog -nv | grep ssl >/var/log/ssl_engine_log <10Z>: --> skipping > >--- snip --- Okay, I think I see what is happening. But if I'm right, then I need to change newsyslog to be a bit more helpful with error msgs. The fields in newsyslog.conf are: # logfilename [owner:group] mode count size when flags ... So, your entry is asking for mode 640 count 10 size @T00 <- oops when * I think you want to switch the @T00 and * fields. Once you do, it will only be rotated for the midnight-run of newsyslog, so the 'newsyslog -nv' will still do nothing. But it should at least have a better summary-message, and newsyslog should do the right thing when it is run at midnight. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu