Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2003 11:23:44 -0600
From:      "Jack L. Stone" <jackstone@sage-one.net>
To:        freebsd-questions@freebsd.org
Subject:   Newsyslog Log File Naming
Message-ID:  <3.0.5.32.20030125112344.02d37ea0@mail.sage-one.net>

next in thread | raw e-mail | index | archive | help
Am running FBSD-4.5 and 4.7.

Has anyone else experienced a problem with newsyslog trimming the logs and
saving the first log as "logname.log.1" instead of "logname.log.0"....
While it "jumps over the "log.0" log and saves the log content in "log.1",
there is usually a "log.0", but it is empty.

This only becomes a problem if another program (like a stats program) is
looking for the first log filename to be "log.0". At first, they were named
"log.0", but abruptly changed to the two files - the "log.0" as empty and
"log.1" with contents. When the stats program is still looking for "log.0",
of course no contents. Can change the stats program to look for the "log.1"
but don't know if it will decide to change the naming again.

Chmod'd files t0 644 and to "B" so the "logfile turned over" line does't
confuse anything, but no dice on correcting the naming. See it happening on
most logs, not just Apache logs.

Can newsyslog be tweaked to make this go back and stay there?

I see this on most if not all machines.... been wondering and googled
without success.

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
jackstone@sage-one.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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