Package: logrotate Version: 3.7.7-3 Severity: wishlist In the manpage I can't find any way how the postrotate script can determine what logfile has just been run. That would be useful for e.g. processing that logfile before moving on to the next one. Without this, I can't really see the point of nosharedscripts, especially as it's the default (e.g. I don't want my apache being restarted 20 times if I have 10 vhosts, each with their own access and error logfiles).
It would be great if an environment variable was made available to the postrotate script so that the script can do something relevant to it. Something like LOGROTATED_LOG for example... This would then contain the name of the rotated log (including the .gz if nodelaycompress is in force). Something similar might also be done for the other script variations; postrotate with sharedscripts might have the full list of rotated logfiles made available, for example. Thanks! Paul Slootman -- Package-specific info: Contents of /etc/logrotate.d total 96 -rw-r--r-- 1 root root 8 2008-04-06 13:37 00local -rw-r--r-- 1 root root 293 2008-03-23 15:38 apache2 -rw-r--r-- 1 root root 244 2007-09-24 13:58 apache2.dpkg-old -rw-r--r-- 1 root root 84 2008-02-16 23:26 apt -rw-r--r-- 1 root root 79 2005-04-07 23:39 aptitude -rw-r--r-- 1 root root 250 2007-12-18 00:00 cupsys -rw-r--r-- 1 root root 111 2006-05-04 13:54 dpkg -rw-r--r-- 1 root root 270 2007-12-21 15:55 exim4-base -rw-r--r-- 1 root root 146 2008-09-30 20:57 exim4-base.dpkg-dist -rw-r--r-- 1 root root 261 2006-05-26 00:20 isdnlog -rw-r--r-- 1 root root 169 2007-12-31 18:38 mcelog -rw-r--r-- 1 root root 112 2006-04-21 00:03 mgetty -rw-r--r-- 1 root root 119 2005-12-13 19:55 munin-node -rw-r--r-- 1 root root 837 2009-02-03 17:15 mysql-server -rw-r--r-- 1 root root 153 2006-05-19 18:59 postgresql-common -rw-r--r-- 1 root root 94 2005-05-06 13:17 ppp -rw-r--r-- 1 root root 1014 2007-02-06 15:19 pure-ftpd-common -rw-r--r-- 1 root root 515 2008-04-06 13:37 rsyslog -rw-r--r-- 1 root root 330 2006-03-31 09:49 samba -rw-r--r-- 1 root root 203 2006-05-13 20:54 suck -rw-r--r-- 1 root root 298 2006-03-19 13:52 uucp -rw-r--r-- 1 root root 439 2006-06-14 20:06 wwwoffle -rw-r--r-- 1 root root 333 2006-07-05 19:19 xdm -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (650, 'testing'), (625, 'stable'), (600, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.22.15 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages logrotate depends on: ii base-passwd 3.5.20 Debian base system master password ii cron 3.0pl1-105 management of regular background p ii libc6 2.9-4 GNU C Library: Shared libraries ii libpopt0 1.14-4 lib for parsing cmdline parameters ii libselinux1 2.0.59-1 SELinux shared libraries Versions of packages logrotate recommends: ii bsd-mailx [mailx] 8.1.2-0.20071201cvs-2 A simple mail user agent ii mailx 1:20081101-2 Transitional package for mailx ren -- 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