Package: logrotate
Version: 3.8.5-1
Severity: normal

root@carillon:~# logrotate -v -f /etc/logrotate.d/exim4-paniclog 
reading config file /etc/logrotate.d/exim4-paniclog

Handling 1 logs

rotating pattern: /var/log/exim4/paniclog  forced from command line (10 
rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/exim4/paniclog
  log does not need rotating
root@carillon:~# ls -lh /var/log/exim4/paniclog 
-rw-r----- 1 Debian-exim adm 88 jun 24 17:52 /var/log/exim4/paniclog
root@carillon:~# cat /etc/logrotate.d/exim4-paniclog 
/var/log/exim4/paniclog {
        size 10M
        missingok
        rotate 10
        compress
        delaycompress
        notifempty
        create 640 Debian-exim adm
}

According to the man page, the "-f" option should force the rotation,
even if logrotate thinks it is not necessary. Unfortunately, that does
not seem to work currently, for some reason.

The exim4-paniclog file is as shipped with exim4, and doing "logrotate
-f" in this manner has worked for me in stable for quite a while now.

-- Package-specific info:
Contents of /etc/logrotate.d
total 84
-rw-r--r-- 1 root root 434 May 31 12:10 apache2
-rw-r--r-- 1 root root 173 Apr 16  2011 apt
-rw-r--r-- 1 root root 298 Sep 12  2010 apt-cacher
-rw-r--r-- 1 root root  78 Apr 21  2011 bacula-common
-rw-r--r-- 1 root root 135 May 20  2011 consolekit
-rw-r--r-- 1 root root 430 Jun  4 16:37 cups-daemon
-rw-r--r-- 1 root root 132 Apr  4  2012 dirmngr
-rw-r--r-- 1 root root 308 Mar 13  2012 distcc
-rw-r--r-- 1 root root  72 Jun 28  2012 dnssec-tools
-rw-r--r-- 1 root root 232 May  4  2011 dpkg
-rw-r--r-- 1 root root 146 May 29  2011 exim4-base
-rw-r--r-- 1 root root 126 May 29  2011 exim4-paniclog
-rw-r--r-- 1 root root 237 Jun 27  2010 leafnode
-rw-r--r-- 1 root root 165 Dec 17  2011 libvirtd
-rw-r--r-- 1 root root 162 Dec 17  2011 libvirtd.lxc
-rw-r--r-- 1 root root 163 Dec 17  2011 libvirtd.qemu
-rw-r--r-- 1 root root 162 Dec 17  2011 libvirtd.uml
-rw-r--r-- 1 root root 157 Apr 12  2011 pm-utils
-rw-r--r-- 1 root root 173 Dec  6  2011 postgresql-common
-rw-r--r-- 1 root root  94 Jan 19  2011 ppp
-rw-r--r-- 1 root root 515 May 30  2011 rsyslog


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.9-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages logrotate depends on:
ii  anacron             2.3-19
ii  base-passwd         3.5.26
ii  cron [cron-daemon]  3.0pl1-124
ii  libacl1             2.2.52-1
ii  libc6               2.17-7
ii  libpopt0            1.16-7
ii  libselinux1         2.1.13-2

Versions of packages logrotate recommends:
ii  bsd-mailx [mailx]  8.1.2-0.20111106cvs-1

logrotate suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to