Hmm, the only problem I had on 7.1 servers was in the logrotate.d/syslog
configuration. It was set like this:


/var/log/mail/* {
...
}

which is wrong.

The correct entrie would be:

/var/log/mail/errors {
...
}

/var/log/mail/info {
...
}

etc.etc.etc.



The '/var/log/mail/*' was causing the previously compressed and rotated logs
to be rotated once more, causing a whole slew of rotations of rotations of
rotations of rotations,  etc..

Does this help?


Scott Taylor wrote:

> Hello,
>
> I have been going through the archives regarding the broken logrotate
> script and see a few that have this same problem, but still can't find the
> fix.  Maybe I missed it.
>
> So far, I have cleaned out the bad /var/log/mail and news
> directories.  Updated logrotate and slocate and all the rest of LMdk7.1
> updates and still the logrotate proc never stops.  It is only happening on
> one of three 7.1 servers, so I figure something is corrupt, but can't
> figure out what.  Any body have a fix for this?
>
> In case this helps:  after a few minutes strace on logrotate shows these
> lines over and over like it's in a forever loop:
> 19779 mremap(0x4013d000, 606208, 606208, MREMAP_MAYMOVE) = 0x4013d000
> 19779 time(NULL)                        = 991160911
>
> Thanks.
>
> --
> Scott Taylor
> Systems Administrator
> DCT Chambers Trucking Ltd.

--
Stephen Lawrence Jr. - Programmer
[EMAIL PROTECTED]
California Animal Health & Food Safety Laboratory System, UC Davis
(530)-752-4614




Reply via email to