Date: Mon, 13 Oct 1997 04:56:43 -0700 (PDT) From: jbrogan@reply.net To: freebsd-gnats-submit@FreeBSD.ORG Subject: conf/4751: sendmail writing to old maillogs after rotation Message-ID: <199710131156.EAA17286@hub.freebsd.org> Resent-Message-ID: <199710131200.FAA17425@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4751 >Category: conf >Synopsis: sendmail writing to old maillogs after rotation >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 13 05:00:01 PDT 1997 >Last-Modified: >Originator: John Brogan >Organization: ReplyNet, Inc. >Release: 2.2.2-RELEASE from CD >Environment: FreeBSD phillips.reply.net 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Tue May 20 10:45:24 GMT 1997 jkh@time.cdrom.com:/usr/src/sys/compile/GENERIC i396 >Description: We rotate the maillogs each morning at 12:01am. This is using the standard code FreeBSD had for many many prior versions. The 2.2.2 release seems to be using newsyslog.conf to handle the logs so we simply removed the maillogs entry from the newsyslog.conf file and went back to using your regular maillog rotation scheme which worked like a champ. Anyway, now when the maillogs are rotated as follows... ... maillog.0 ----> maillog.1 maillog ----> maillog.0 Just like it has always done. But now sendmail will start writing to maillog.0 instead of maillog where it's supposed to. In fact, I've even found times when it's writing to maillog.2 or even maillog.3. And when I actually *rename* a maillog it is writing to.... it will write to that renamed version! Real neat, but not good. What can I do to stop this writing to older maillog problem? It is important because I try to keep logs of the entire day's activity in each log. It seems sendmail isn't letting go of the file or something. Any ideas? Thanks much. John Brogan ReplyNet, Inc. >How-To-Repeat: rename maillog to maillog.keep or maillog.whatever and it should write to that file. rename maillog to maillog.0 and it should also write to maillog.0 instead of maillog >Fix: Unknown. Perhaps sendmail isn't "letting go" of the file when it's done writing? >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710131156.EAA17286>