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

Bug#359987: very old xdm.logs not cleaned up



On Thu, Mar 30, 2006 at 05:48:44 +0000, Dan Jacobson wrote:

> Package: xdm
> Version: 6.8.2.dfsg.1-11
> Severity: minor
> 
> Controls were not put on logfiles.
> $ ls /var/log|sed 's/\..*//'|uniq -c|sort -nr|head
>      48 xdm
>      20 mail...
> 
> I am already at xdm.log.44.gz
> The logrotate or whatever needs to limit their proliferation.
> 
$ cat /etc/logrotate.d/xdm 
# $Id: xdm.logrotate 189 2005-06-11 00:04:27Z branden $

/var/log/xdm.log {
    weekly
    rotate 52
    compress
    delaycompress
    notifempty
    missingok
    postrotate
        if [ -r /var/run/xdm.pid ]; then \
            kill -s USR2 $(cat /var/run/xdm.pid); \
        fi
    endscript
}

# vim:set ai et sts=4 sw=4 tw=80:

So, you'll have up to 52 logfiles. Why do you think that this is too
much, and even then, that changing the limit in your own
/etc/logrotate.d/xdm file would not solve this?

Cheers,
Julien



Reply to: