newbie: newsyslog ssl_engine_log rotation
Garance A Drosihn
drosih at rpi.edu
Mon May 5 15:01:00 PDT 2003
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 at gilead.netel.rpi.edu
Senior Systems Programmer or gad at freebsd.org
Rensselaer Polytechnic Institute or drosih at rpi.edu
More information about the freebsd-questions
mailing list