Package: clamav-freshclam
Version: 0.84-2
Severity: minor
Tags: patch

I'm not running the daemon, so I'm glad to see the pid-check in the
new /etc/logrotate.d/clamav-freshclam:

 [ -f /var/run/clamav/freshclam.pid ] && kill -HUP `cat 
/var/run/clamav/freshclam.pid` > /dev/null

However, testing for it this way, the last thing the postrotate
script does is fail to find it, so logrotate reports it as an error:

 /etc/cron.daily/logrotate:         
 error: error running postrotate script         
 run-parts: /etc/cron.daily/logrotate exited with return code 1

Now, if you did it this way round (cf /etc/logrotate.d/samba) it
would report an error only if something went wrong with the kill: 

 [ ! -f /var/run/clamav/freshclam.pid ] || kill -HUP `cat 
/var/run/clamav/freshclam.pid` > /dev/null

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages clamav-freshclam depends on:
ii  clamav-base                 0.84-2       base package for clamav, an anti-v
ii  debconf [debconf-2.0]       1.4.30.13    Debian configuration management sy
ii  debianutils                 2.8.4        Miscellaneous utilities specific t
ii  libbz2-1.0                  1.0.2-5      high-quality block-sorting file co
ii  libc6                       2.3.2.ds1-21 GNU C Library: Shared libraries an
ii  libclamav1                  0.84-2       virus scanner library
ii  libcurl3                    7.13.2-2     Multi-protocol file transfer libra
ii  libgmp3                     4.1.4-6      Multiprecision arithmetic library
ii  libidn11                    0.5.13-1.0   GNU libidn library, implementation
ii  libssl0.9.7                 0.9.7e-3     SSL shared libraries
ii  logrotate                   3.7-2        Log rotation utility
ii  ucf                         1.17         Update Configuration File: preserv
ii  zlib1g                      1:1.2.2-4    compression library - runtime

-- debconf information:
* clamav-freshclam/autoupdate_freshclam: cron
* clamav-freshclam/local_mirror: db.local.clamav.net
  clamav-freshclam/mirrors.txt-note:
  clamav-freshclam/internet_interface:
  clamav-freshclam/proxy_user:
* clamav-freshclam/NotifyClamd: true
* clamav-freshclam/http_proxy:
  clamav-freshclam/update_interval: 24

-- 
JBR
Ankh kak! (Ancient Egyptian blessing)


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

Reply via email to