Package: logrotate
Version: 3.7.8-6
Severity: normal

Logrotate gives an error when using the 'mailfirst' directive.
Replacing mailfirst with mail makes the error disappear.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504079 had a similar bug, but
it was alledgedly fixed in 3.7.7-1 while I am using 3.7.8-6.
Adding nocompress in both /etc/logrotate.conf and in the specific stanza (in
/etc/logrotate.d/rsyslog) doesn't help (thus I assume this bug is unrelated
to #504079).



-- Package-specific info:
Contents of /etc/logrotate.d
total 64
-rw-r--r-- 1 root root 230 Jun 13 00:54 apache2
-rw-r--r-- 1 root root 173 Jan 25  2011 apt
-rw-r--r-- 1 root root  79 Dec  4  2008 aptitude
-rw-r--r-- 1 root root 135 Feb 24  2010 consolekit
-rw-r--r-- 1 root root 248 May 25  2009 cups
-rw-r--r-- 1 root root 124 Feb 18  2008 dirmngr
-rw-r--r-- 1 root root 232 Jan 30  2011 dpkg
-rw-r--r-- 1 root root 146 Sep 30  2008 exim4-base
-rw-r--r-- 1 root root 126 Sep 30  2008 exim4-paniclog
-rw-r--r-- 1 root root 100 Dec  3  2008 kdm
-rw-r--r-- 1 root root 157 Nov 16  2010 pm-utils
-rw-r--r-- 1 root root  94 Nov 28  2008 ppp
-rw-r--r-- 1 root root 781 Jun 17 02:51 rsyslog
-rw-r--r-- 1 root root 322 Feb 25  2011 samba
-rw-r--r-- 1 root root 513 Feb  2  2011 speech-dispatcher
-rw-r--r-- 1 root root 333 Oct  5  2008 xdm



*** /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 0660 root utmp
    rotate 1
}

# system-specific logs may be configured here

##Oli
mail me@email.example

*** /etc/logrotate.d/rsyslog
/var/log/syslog
{
        rotate 7
        daily
        missingok
        notifempty
        delaycompress
        compress
        postrotate
                invoke-rc.d rsyslog reload > /dev/null
        endscript
        mail me@email.example
}

/var/log/iptables.log
/var/log/mainrouter.syslog
{
        rotate 7
        daily
        missingok
        notifempty
        mailfirst me@email.example
        postrotate
                invoke-rc.d rsyslog reload > /dev/null
        endscript
}

/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
        rotate 4
        weekly
        missingok
        notifempty
        compress
        delaycompress
        sharedscripts
        postrotate
                invoke-rc.d rsyslog reload > /dev/null
        endscript
        mail me@email.example
}

*** logrotate output
mediaCenter:~,0# logrotate -d /etc/logrotate.conf >logrotate.txt 2>&1
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file apache2
reading config info for /var/log/apache2/*.log 
reading config file apt
reading config info for /var/log/apt/term.log 
reading config info for /var/log/apt/history.log 
reading config file aptitude
reading config info for /var/log/aptitude 
reading config file consolekit
reading config info for /var/log/ConsoleKit/history 
reading config file cups
reading config info for /var/log/cups/*log 
reading config file dirmngr
reading config info for /var/log/dirmngr.log 
reading config file dpkg
reading config info for /var/log/dpkg.log 
reading config info for /var/log/alternatives.log 
reading config file exim4-base
reading config info for /var/log/exim4/mainlog /var/log/exim4/rejectlog 
reading config file exim4-paniclog
reading config info for /var/log/exim4/paniclog 
reading config file kdm
reading config info for /var/log/kdm.log 
reading config file pm-utils
reading config info for /var/log/pm-suspend.log /var/log/pm-powersave.log 
reading config file ppp
reading config info for /var/log/ppp-connect-errors 
reading config file rsyslog
reading config info for /var/log/syslog

reading config info for /var/log/iptables.log
/var/log/mainrouter.syslog

reading config info for /var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages

reading config file samba
reading config info for /var/log/samba/log.smbd 
reading config info for /var/log/samba/log.nmbd 
reading config file speech-dispatcher
reading config info for /var/log/speech-dispatcher/speech-dispatcher.log 
/var/log/speech-dispatcher/speech-dispatcher-protocol.log 
reading config info for /var/log/speech-dispatcher/debug-epos-generic 
/var/log/speech-dispatcher/debug-festival 
/var/log/speech-dispatcher/debug-flite 
reading config file xdm
reading config info for /var/log/xdm.log 
reading config info for /var/log/wtmp 
reading config info for /var/log/btmp 

Handling 24 logs

rotating pattern: /var/log/apache2/*.log  weekly (52 rotations)
empty log files are not rotated, old logs mailed to me@email.example
considering log /var/log/apache2/access.log
  log does not need rotating
considering log /var/log/apache2/error.log
  log does not need rotating
considering log /var/log/apache2/other_vhosts_access.log
  log does not need rotating
not running postrotate script, since no logs were rotated

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

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

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

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

rotating pattern: /var/log/cups/*log  after 1 days (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/cups/access_log
  log does not need rotating
considering log /var/log/cups/error_log
  log does not need rotating
considering log /var/log/cups/page_log
  log does not need rotating
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/dirmngr.log  weekly (4 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/dirmngr.log
  log does not need rotating
not running postrotate script, since no logs were rotated

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/alternatives.log  monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/alternatives.log
  log does not need rotating

rotating pattern: /var/log/exim4/mainlog /var/log/exim4/rejectlog  after 1 days 
(10 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/exim4/mainlog
  log does not need rotating
considering log /var/log/exim4/rejectlog
  log does not need rotating

rotating pattern: /var/log/exim4/paniclog  10485760 bytes (10 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/exim4/paniclog
  log /var/log/exim4/paniclog does not exist -- skipping

rotating pattern: /var/log/kdm.log  after 1 days (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/kdm.log
  log does not need rotating

rotating pattern: /var/log/pm-suspend.log /var/log/pm-powersave.log  monthly (4 
rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/pm-suspend.log
  log /var/log/pm-suspend.log does not exist -- skipping
considering log /var/log/pm-powersave.log
  log does not need rotating

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

rotating pattern: /var/log/syslog
 after 1 days (7 rotations)
empty log files are not rotated, old logs mailed to me@email.example
considering log /var/log/syslog
  log does not need rotating
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/iptables.log
/var/log/mainrouter.syslog
 after 1 days (7 rotations)
empty log files are not rotated, old logs mailed to me@email.example
considering log /var/log/iptables.log
  log does not need rotating
considering log /var/log/mainrouter.syslog
  log does not need rotating
not running postrotate script, since no logs were rotated
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
 weekly (4 rotations)
empty log files are not rotated, old logs mailed to me@email.example
considering log /var/log/mail.info
  log does not need rotating
considering log /var/log/mail.warn
  log does not need rotating
considering log /var/log/mail.err
  log does not need rotating
considering log /var/log/mail.log
  log does not need rotating
considering log /var/log/daemon.log
  log does not need rotating
considering log /var/log/kern.log
  log does not need rotating
considering log /var/log/auth.log
  log does not need rotating
considering log /var/log/user.log
  log does not need rotating
considering log /var/log/lpr.log
  log does not need rotating
considering log /var/log/cron.log
  log /var/log/cron.log does not exist -- skipping
considering log /var/log/debug
  log does not need rotating
considering log /var/log/messages
  log does not need rotating
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/samba/log.smbd  weekly (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/samba/log.smbd
  log does not need rotating
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/samba/log.nmbd  weekly (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/samba/log.nmbd
  log does not need rotating
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/speech-dispatcher/speech-dispatcher.log 
/var/log/speech-dispatcher/speech-dispatcher-protocol.log  after 1 days (7 
rotations)
empty log files are rotated, old logs are removed
considering log /var/log/speech-dispatcher/speech-dispatcher.log
  log /var/log/speech-dispatcher/speech-dispatcher.log does not exist -- 
skipping
considering log /var/log/speech-dispatcher/speech-dispatcher-protocol.log
  log /var/log/speech-dispatcher/speech-dispatcher-protocol.log does not exist 
-- skipping
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/speech-dispatcher/debug-epos-generic 
/var/log/speech-dispatcher/debug-festival 
/var/log/speech-dispatcher/debug-flite  after 1 days (2 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/speech-dispatcher/debug-epos-generic
  log /var/log/speech-dispatcher/debug-epos-generic does not exist -- skipping
considering log /var/log/speech-dispatcher/debug-festival
  log /var/log/speech-dispatcher/debug-festival does not exist -- skipping
considering log /var/log/speech-dispatcher/debug-flite
  log /var/log/speech-dispatcher/debug-flite does not exist -- skipping
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/xdm.log  weekly (52 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/xdm.log
  log /var/log/xdm.log does not exist -- skipping
not running 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


-- System Information:
Debian Release: 6.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages logrotate depends on:
ii  anacron                       2.3-14     cron-like program that doesn't go 
ii  base-passwd                   3.5.22     Debian base system master password
ii  cron                          3.0pl1-116 process scheduling daemon
ii  libc6                         2.11.3-3   Embedded GNU C Library: Shared lib
ii  libpopt0                      1.16-1     lib for parsing cmdline parameters
ii  libselinux1                   2.0.96-1   SELinux runtime shared libraries

Versions of packages logrotate recommends:
ii  bsd-mailx [mailx]  8.1.2-0.20100314cvs-1 simple mail user agent

logrotate suggests no packages.

-- Configuration Files:
/etc/logrotate.conf changed [not included]

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to