Bug#285858: No log rotation after exim3->exim4 upgrade

Greg Kochanski gpk@kochanski.org, 285858@bugs.debian.org
Tue, 21 Dec 2004 23:17:08 +0000


Andreas Metzler wrote:
> reassign 285858 exim4-base
> thanks
> On 2004-12-16 Greg Kochanski <gpk@kochanski.org> wrote:
> 
>>Package: exim4
>>Version: 4.34-8
>>Severity: normal
> 
> 
>>If I do ls -lrt of /var/log/exim4, I see this:
>>gpk:exim$ sudo ls -lrt /var/log/exim4
> 
> [...]
> 
>>-rw-r-----  1 Debian-exim adm  104559 Oct 20 06:32 mainlog.1
>>-rw-r-----  1 Debian-exim adm     565 Oct 20 06:33 rejectlog.2.gz
>>-rw-r-----  1 Debian-exim adm   17904 Oct 20 06:33 mainlog.2.gz
>>-rw-r-----  1 Debian-exim adm       0 Dec  8 08:55 paniclog
>>-rw-r-----  1 Debian-exim adm   97811 Dec 15 22:57 rejectlog
>>-rw-r-----  1 Debian-exim adm 5285498 Dec 16 00:17 mainlog
> 
> 
>>Note that it's been two months since mainlog was rotated;
>>it's starting to get pretty big.
> 
> [...]
> 
> Logrotation works fine for me. Did you modify
> /etc/logrotate.d/exim4-base? What does
> logrotate -d /etc/logrotate.conf 2>&1 | grep -2 exim4
> say?
>            thanks, cu andreas




I didn't modify /etc/logrotate.d/exim4-base.  It looks like this:

cat /etc/logrotate.d/exim4-base
/var/log/exim4/mainlog /var/log/exim4/rejectlog /var/log/exim4/paniclog {
         daily
         missingok
         rotate 10
         compress
         delaycompress
         notifempty
         create 640 Debian-exim adm
}