From owner-freebsd-questions@FreeBSD.ORG Mon Jan 23 17:56:41 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 5B68A16A41F for ; Mon, 23 Jan 2006 17:56:41 +0000 (GMT) (envelope-from jking@informs.com) Received: from mail.informs.com (mail.informs.com [216.248.165.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC86C43D58 for ; Mon, 23 Jan 2006 17:56:39 +0000 (GMT) (envelope-from jking@informs.com) Received: (qmail 13366 invoked by uid 1011); 23 Jan 2006 11:56:36 -0600 Received: from 216.248.165.9 by mail.informs.com (envelope-from , uid 1009) with qmail-scanner-1.25-st-qms (clamdscan: 0.87.1/1197. spamassassin: 3.0.4. perlscan: 1.25-st-qms. Clear:RC:1(216.248.165.9):. Processed in 0.033104 secs); 23 Jan 2006 17:56:36 -0000 X-Antivirus-INFORMS-Mail-From: jking@informs.com via mail.informs.com X-Antivirus-INFORMS: 1.25-st-qms (Clear:RC:1(216.248.165.9):. Processed in 0.033104 secs Process 13361) Received: from ibm-511f3cbb7a9.informs.com (216.248.165.9) by mail.informs.com with SMTP; 23 Jan 2006 11:56:36 -0600 From: Jason King To: Garance A Drosehn In-Reply-To: References: <1137444617.7255.24.camel@localhost.localdomain> <20060116214812.GB5533@Grumpy.DynDNS.org> <1137504205.10680.8.camel@localhost.localdomain> <20060117151620.GB19673@Grumpy.DynDNS.org> <1137511411.7326.7.camel@localhost.localdomain> Content-Type: text/plain Date: Mon, 23 Jan 2006 11:56:36 -0600 Message-Id: <1138038996.11414.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit Cc: David Kelly , freebsd-questions@FreeBSD.org Subject: Re: log file rotation 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: Mon, 23 Jan 2006 17:56:41 -0000 That was the problem. I fixed the $T00 to @T00 and it works like a charm now. I don't know how that got in there to begin with. It has been working fine. Anyway, thanks and cheers. Jason On Tue, 2006-01-17 at 15:15 -0500, Garance A Drosehn wrote: > At 9:23 AM -0600 1/17/06, Jason King wrote: > > > >On Tue, 2006-01-17 at 09:16 -0600, David Kelly wrote: > >> On Tue, Jan 17, 2006 at 07:23:25AM -0600, Jason King wrote: > >> > Hmm, when I run newsyslog I get the following message: > >> > > >> > root@mail# newsyslog -vv > >> > newsyslog: malformed 'at' value: > > > > /var/log/clamd.log 640 3 * $T00 > >> > BJ /var/run/clamd.pid 1 > >> > > >> > > >> > Any ideas? > >> > > > Use @T00 rather than $T00 > > > >It is already @T00. I don't know why it appears as a $ in the email. > >Just did a copy paste. Go figure on that one. Any other thoughts? > > If newsyslog is saying that's a bad 'at' value, then there is > *something* wrong with that line. Maybe there's some non-printing > character in it, which might be why we see $T00 instead of @T00. > But as long as newsyslog thinks there is something wrong with the > 'at' value on that line, then it will not rotate the files. Maybe > you have multiple lines for the same logfile, one with $T00 and > one with @T00. > > Also, you don't need to specify the '1' at the end, since that is > just SIGHUP, and newsyslog defaults to using SIGHUP unless you give > it some other value. Including the '1' should not cause any problem, > though. >