Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2006 15:15:13 -0500
From:      Garance A Drosehn <gad@FreeBSD.org>
To:        Jason King <jking@informs.com>, David Kelly <dkelly@hiwaay.net>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: log file rotation
Message-ID:  <p0623093cbff2fe64a098@[128.113.24.47]>
In-Reply-To: <1137511411.7326.7.camel@localhost.localdomain>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-- 
Garance Alistair Drosehn     =      gad@gilead.netel.rpi.edu
Senior Systems Programmer               or   gad@FreeBSD.org
Rensselaer Polytechnic Institute;             Troy, NY;  USA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p0623093cbff2fe64a098>