> Check the size of mail and news directory under /var
> 
> drw-------    3 root     root      5042176 Sep 26 15:25 news/
> drw-------    2 root     root      8466432 Sep 27 10:05 mail/
> 
> If I run  "lsattr -R /var/log/news"
> 
> this is part of the infinitely long output of the above commands!! I think
> something is majorly conked in this directory!!! any ideas how to fix
> this??
> 
> --------
> /var/log/news/news.err.1.gz.1.gz.4.gz.1.gz.2.gz.1.gz.1.gz.1.gz.3.gz.1
> -------- /var/log/news/news.err.1.gz.1.gz.4.gz.1.gz.2.gz.1.gz.4.gz.2.gz
> -------- /var/log/news/news.err.1.gz.1.gz.4.gz.1.gz.2.gz.5.gz.2.gz
[snip]

The problem (which everyone should fix in 7.1) is in the file
    /etc/logrotate.d/syslog

The line that says /var/log/mail/* and /var/log/news/* causes the .gz
files to once again be rotated as well. Change the script to specify
only the files that are to be rotated. Should be (copy/paste) ...

/var/log/mail/mail.err {
        rotate 5
        weekly
        postrotate
        /usr/bin/killall -HUP syslogd
        endscript
}

/var/log/mail/mail.info {
        rotate 5
        weekly
        postrotate
        /usr/bin/killall -HUP syslogd
        endscript
}

/var/log/mail/mail.warn {
        rotate 5
        weekly
        postrotate
        /usr/bin/killall -HUP syslogd
        endscript
}

/var/log/news/news.crit {
        rotate 5
        weekly
        postrotate
        /usr/bin/killall -HUP syslogd
        endscript
}

/var/log/news/news.err {
        rotate 5
        weekly
        postrotate
        /usr/bin/killall -HUP syslogd
        endscript
}

Thanks... Dan.



Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to