On Thu, 20 Feb 2003 09:56:43 -0500, "Billy Davis" <[EMAIL PROTECTED]>
wrote:

> (S4), then I would be simply changing the line '/var/log/mgetty.log.tty* {' to be 
>'/var/log/mgetty.log.ttyS4 {'  which would still allow error messages to be created 
>for port S4.  But, these are the errors that I was >getting.  What I really want to 
>know, is what causes the S4 port to start creating bunches and bunches of empty log 
>files in just a few seconds.  Any idea?

A bug in logrotate handling of the config file or in the making of the
config file.

What happens is that the first time you have ttyS4, logrotate uses tty* and
it matches ttyS4, it rotates it to ttyS4.1. So you now have ttyS4 ttyS4.1.
Next time logrotate uses tty* and it matches both the current log and the
rotated one, so it rotates both instead of just the current, ie it sees
ttyS4.1 ad a valid log file not as a rotated log file.

Don't know if recent logrotate versions can handle this better.

-- 
[EMAIL PROTECTED]



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to