Re: Logrotate no longer works..."Too Many Open Files"

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

 



Mike Burger wrote:
> The "current" logs were now being written to as named.log.1, messages.1,
> maillog.1.
> 
> But the files weren't recreated, and the postrotate scripts not run.
> 
> I looked in my /var/named/chroot/var/log/named dir, and found tons and
> tons of logs with oddball numberings.  I cleared them and will see how
> that goes.
> 
That sounds like syslogd and the other programs are not getting
notified about the log rotation, and are continuing to use the same
file, instead of creating/using the new file. This is normally
handled by the postrotate script in the logrotate config file for
the service. For example, in the case of syslog, the script runs:

/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null
|| true

This sends syslogd a HUP signal so it know to close the log files it
is using, and open new ones. If syslogd does not get the signal, it
continues to use the file it has open, and you get messages added to
files like messages.1 instead of messages. The trick is finding out
why this is happening. Do you have more then one copy of logrotate
running?

You may want to run "service syslog reload" to get syslog to start
using the new files while you are working on this.

Mikkel
-- 

A:  Because it messes up the order in which people normally read text.
Q:  Why is top-posting a bad thing?


Attachment: signature.asc
Description: OpenPGP digital signature

-- 
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