Package: clamav-freshclam
Version: 0.88.3-libunrar3-1
Severity: important

When freshclam is configured to act as a daemon the init script fails to
start it. Below is the output:

Starting ClamAV virus database updater:
freshclam/sbin/start-stop-daemon: stat /var/run/clamav/freshclam.pid: No
such file or directory (No such file or directory)
 failed!

Running the init script in debug mode (with the -x switch) one can see
what's happening (the output below is only an excerpt):

Starting ClamAV virus database updater: freshclam+ '[' -f
/etc/cron.d/clamav-freshclam ']'
+ start_daemon /usr/bin/freshclam -p /var/run/clamav/freshclam.pid -d
--quiet
+ local force nice pidfile exec i
+ force=0
+ nice=0
+ pidfile=/dev/null
+ getopts fn:p: opt
+ shift 2
+ '[' /var/run/clamav/freshclam.pid = -- ']'
+ exec=/var/run/clamav/freshclam.pid
+ shift
+ '[' 0 = 1 ']'
+ '[' /dev/null ']'
+ /sbin/start-stop-daemon --start --nicelevel 0 --quiet --exec
/var/run/clamav/freshclam.pid --oknodo --pidfile /dev/null -- -d --quiet
/sbin/start-stop-daemon: stat /var/run/clamav/freshclam.pid: No such
file or directory (No such file or directory)

It seems that the start_daemon() function from /lib/lsb/init-functions
wants to execute the pid file (note the
exec=/var/run/clamav/freshclam.pid assignment).

Piotr Kaczuba


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.8-orbiter.x86-64.1
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)

Versions of packages clamav-freshclam depends on:
ii  clamav-base           0.88.3-libunrar3-1 base package for clamav, an anti-v
ii  debconf [debconf-2.0] 1.5.3              Debian configuration management sy
ii  debianutils           2.17               Miscellaneous utilities specific t
ii  libc6                 2.3.6-18           GNU C Library: Shared libraries
ii  libclamav1            0.88.3-libunrar3-1 virus scanner library
ii  logrotate             3.7.1-3            Log rotation utility
ii  lsb-base              3.1-12             Linux Standard Base 3.1 init scrip
ii  ucf                   2.0012             Update Configuration File: preserv

clamav-freshclam recommends no packages.

-- debconf information:
* clamav-freshclam/autoupdate_freshclam: daemon
* 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


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

Reply via email to