LogRotate Doesn't

Jeff Vian jvian10 at charter.net
Wed Jun 14 23:32:22 UTC 2006


On Wed, 2006-06-14 at 10:49 -0400, David Cary Hart wrote:
> Here's part of the debugging output with force:
> 
> log needs rotating
> rotating log /var/log/messages, log->rotateCount is 7

So you are not using the default logrotate options in Fedora?
The default is 4 saved versions.
Logrotate is run by cron, with the script in /etc/cron.daily and the
config files are /etc/logrotate.conf and in /etc/logrotate.d.

The default options have always worked for me on both workstations and
servers.

Maybe you need to reinstall or make your config files match the defaults
and see if it will work out of the box before you tailor it. 

> renaming /var/log/messages.7 to /var/log/messages.8 (rotatecount 7, logstart 1, i 7),
> renaming /var/log/messages.6 to /var/log/messages.7 (rotatecount 7, logstart 1, i 6),
> renaming /var/log/messages.5 to /var/log/messages.6 (rotatecount 7, logstart 1, i 5),
> renaming /var/log/messages.4 to /var/log/messages.5 (rotatecount 7, logstart 1, i 4),
> renaming /var/log/messages.3 to /var/log/messages.4 (rotatecount 7, logstart 1, i 3),
> renaming /var/log/messages.2 to /var/log/messages.3 (rotatecount 7, logstart 1, i 2),
> renaming /var/log/messages.1 to /var/log/messages.2 (rotatecount 7, logstart 1, i 1),
> renaming /var/log/messages.0 to /var/log/messages.1 (rotatecount 7, logstart 1, i 0),
> renaming /var/log/messages to /var/log/messages.1
> creating new log mode = 0600 uid = 0 gid = 0
> removing old log /var/log/messages.8
> 
> None of the above actually took place. All I have
> is /var/log/messages.
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list




More information about the fedora-list mailing list