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

logrotate zombie



I am have trouble running logrotate on debian testing.  Every morning when
cron daily runs, logrotate becomes defunct.  Here is the "ps" output:

root     24125 22098  0 06:25 ?        00:00:00 /USR/SBIN/CRON
root     24126 24125  0 06:25 ?        00:00:00 /bin/sh -c test -x
/usr/sbin/anacron || run-parts --report /etc/cron.daily
root     24129 24126  0 06:25 ?        00:00:00 run-parts --report
/etc/cron.daily
root     24169 24129  0 06:28 ?        00:00:00 [logrotate] <defunct>


However, when I run logrotate from the command line it works without any
problems (output below).  My logrotate.conf is also included below.

Is this a known problem?

Thanks,
Chris.

_________________________________________________________________________
Output when logrotate is run from the command line with the verbose switch

arrakis:/etc/cron.daily# ./logrotate 
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file aptitude
reading config info for /var/log/aptitude 
reading config file base-config
reading config info for /var/log/base-config.log 
reading config info for /var/log/base-config.timings 
reading config file dpkg
reading config info for /var/log/dpkg.log 
reading config file lighttpd
reading config info for /var/log/lighttpd/*.log 
reading config info for /var/log/wtmp 
reading config info for /var/log/btmp 

Handling 7 logs

rotating pattern: /var/log/aptitude  monthly (6 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/aptitude
  log /var/log/aptitude does not exist -- skipping

rotating pattern: /var/log/base-config.log  weekly (4 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/base-config.log
  log /var/log/base-config.log does not exist -- skipping

rotating pattern: /var/log/base-config.timings  weekly (4 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/base-config.timings
  log /var/log/base-config.timings does not exist -- skipping

rotating pattern: /var/log/dpkg.log  monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/dpkg.log
  log does not need rotating

rotating pattern: /var/log/lighttpd/*.log  after 1 days (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/lighttpd/access.log
  log does not need rotating
considering log /var/log/lighttpd/error.log
  log does not need rotating
not running shared postrotate script, since no logs were rotated

rotating pattern: /var/log/wtmp  monthly (1 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/wtmp
  log does not need rotating

rotating pattern: /var/log/btmp  monthly (1 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/btmp
  log does not need rotating
__________________________________________________________________________
/etc/logrotate.conf

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

# system-specific logs may be configured here



Reply to: