Package: clamav-data
Severity: important
Tags: patch

While upgrading clamav-data from volatile today, I got the error that
clamav-daemons database could not be reloaded.

This is due to the fact that reload-database is not an action in the
clamav-daemon init script.

If you use restart it does work. 

I've patched the clamav-data.postinst
to use restart instead of reload-database.


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.31
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
--- clamav-data.postinst-orig   2005-12-09 09:43:27.939435696 +0100
+++ clamav-data.postinst        2005-12-09 09:44:45.127701296 +0100
@@ -13,11 +13,11 @@
   fi
   if [ -x "$INITSCRIPT" ]; then
     RET=0
-    $INITSCRIPT reload-database || RET=$?
+    $INITSCRIPT restart || RET=$?
     # clamav-daemon init script will return 0 on "no error" and
     # 3 on "daemon is not running".
     if [ "$RET" -ne 0 ] && [ "$RET" -ne 3 ]; then
-      echo >&2 "WARN: signaling clamav-daemon to reload database failed"
+      echo >&2 "WARN: signaling clamav-daemon to restart failed"
     fi
     if [ "$RET" -eq 3 ]; then
       echo >&2 "WARN: clamav-daemon not running, according to init script"

Reply via email to