Re: logrotate failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Gene Heskett wrote:
On Monday 20 November 2006 19:00, David G. Miller wrote:
Gene Heskett wrote:
[...]
I repeat, no upgrade, fresh install.  But I repeat myself... :)
The important questions is, what happens if you do the following?

cd /etc/logrotate.d
grep named *

On a system with bind installed, you should see:

[root@fraud logrotate.d]# grep named *
named:/var/log/named.log {
named:    create 0644 named named
named:        /sbin/service named reload  2> /dev/null > /dev/null ||
true

And I get:
===========
[root@coyote logrotate.d]# grep named *
named:/var/log/named.log {
named:    create 0644 named named
named:        /sbin/service named reload  2> /dev/null > /dev/null || true
named.rpmnew:/var/log/named.log {
named.rpmnew:    create 0644 named named
named.rpmnew: /sbin/service named reload 2> /dev/null
Actually, here's the clue. You have both a named file and a named.rpmnew. When you installed bind, the installation script detected AN EXISTING named file in /etc/logrotate.d and installed the new file as named.rpmnew. Don't know why you had a named file in logrotate.d without having bind installed but you did.

logrotate grabs each file in /etc/logrotate.d and attempts to execute it. The old named file is your culprit for causing logrotate to die. It tries to set the new log file to be owned by named. If this user doesn't exist, you get the error you saw.

You should be able to uninstall bind, delete any named file still in /etc/logrotate.d and delete the named user (if removing the rpm doesn't do that for you).

Cheers,
Dave

--
Politics, n. Strife of interests masquerading as a contest of principles.
-- Ambrose Bierce

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux