Re: logrotate does not finish(work)

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

 



On Thu, Jun 12, 2003 at 04:44:59AM -0400, Oliver Schulze L. wrote:
> Hi,
> I'm having a problem with logrotate.
> It does not finish, it keep running for hours.
> 
> I try running in debug mode like this:
> # logrotate -d /etc/logrotate.conf
> and the program never exit or finish.
> 
> This is what I see:
> # logrotate -d /etc/logrotate.conf 
> reading config file /etc/logrotate.conf
> including /etc/logrotate.d
> reading config file cups
> reading config info for /var/log/cups/*_log
> reading config file ftpd
> reading config info for /var/log/xferlog
> reading config file httpd
> reading config info for /var/log/httpd/*log
> reading config file mgetty
> reading config info for /var/log/mgetty.log.tty[^.] 
> /var/log/mgetty.log.tty[^.][^.] /var/log/mgetty.log.tty[^.][^.][^.] 
> /var/log/mgetty.log.tty[^.][^.][^.][^.] 
> /var/log/mgetty.log.tty[^.][^.][^.][^.][^.] 
> /var/log/mgetty.log.tty[^.][^.][^.][^.][^.][^.] 
> /var/log/mgetty.log.tty[^.][^.][^.][^.][^.][^.][^.] 
> /var/log/mgetty.log.tty[^.][^.][^.][^.][^.][^.][^.][^.] 
> /var/log/mgetty.log.tty[^.][^.][^.][^.][^.][^.][^.][^.][^.] 
> /var/log/mgetty.log.tty[^.][^.][^.][^.][^.][^.][^.][^.][^.][^.] 
> /var/log/mgetty.log.unknown /var/log/mgetty.callback
> reading config file mysqld
> reading config info for /var/log/mysqld.log
> reading config file named
> reading config info for /var/log/named.log
> reading config file rpm
> reading config info for /var/log/rpmpkgs
> reading config file samba
> reading config info for /var/log/samba/*.log
> reading config file snmpd
> reading config info for /var/log/snmpd.log
> reading config file squid
> reading config info for /var/log/squid/access.log
> reading config info for /var/log/squid/cache.log
> reading config info for /var/log/squid/store.log
> reading config file syslog
> reading config info for /var/log/messages /var/log/secure 
> /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron
> reading config file up2date
> reading config info for /var/log/up2date
> reading config file uucp
> reading config info for /var/log/uucp/Log
> reading config info for /var/log/uucp/Debug
> reading config info for /var/log/uucp/Stats
> reading config file vsftpd.log
> reading config info for /var/log/vsftpd.log
> 
> and then nothing more.
> I have to kill logrotate in order to finish with:
> # killall logrotate
> 
> Anyone is having this problem?
I have had this problem from time to time. You realize that what
logrotate.conf is doing is running the scripts in /etc/logrotate.d in
alphabetical order. Normally after the uucp you get vgetty, vm and
finally zebra logs being rotated. You seem to have vsftpd running which
I am not familiar with so vgetty is skipped.

Anyway the bottom line is the behavior you see is caused by errors in
the scripts being run. Check the scripts carefully after uucp and see
is one of them has a glaring error. mgetty and vgetty are the most
popular ones with problems and your mgetty output seems problematic.
It should be more like this:
#
# Rotate mgetty log files.
#

/var/log/mgetty.log.ttyS0 {
        nocompress
	        missingok
		}

Then the file distributed. Anyway checking the scripts is the way to
go.
-- 
-------------------------------------------
Aaron Konstam
Computer Science
Trinity University
715 Stadium Dr.
San Antonio, TX 78212-7200

telephone: (210)-999-7484
email:akonstam@xxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux