logrotate problem resolved

Eric Rossiter rossiter at discoverynet.com
Tue Apr 2 15:00:38 CST 2002


Good morning Lugites,

Seems we've figured out the logrotate problem.  Running logrotate
manually revealed an error that was not showing up in /var/log/messages
for some reason.  The error was:
 "error:/etc/logrotate.conf:27 duplicate entry for /var/log/messages"

Editing /etc/logrotate.conf revealed the following block of code, which
I commented out.

# system-specific logs may be configured here
#/var/log/messages {
#    rotate 4
#    weekly
#    postrotate
#     /sbin/killall -HUP syslogd
#    endscript
#    }

After commenting out the above, logrotate will run manually.  I'll have
to wait and see if runs through cron now.
Now, if you don't configure /var/log/messages to be rotated in
/etc/logrotate.conf....where is it configured???
Any idea how it would have gotten here if it wasn't supposed to be?

I'd like to thank everyone who helped or assisted, especially Brian D,
he has the patience of a saint.

Hopefully I will be able to offer assistance to someone else in the
future.

peace,
Eric




More information about the Kclug mailing list