Am 29.09.2015 09:31 schrieb Marco:
> With this installation, after every freshclam update session, clamd is
> forced to read the DB:

I had a similar issue. I call freshclam once a minute and the db reload 
generate a significant load.
I fixed it with ithe attached patch.

-- 
Andreas Schulze
Internetdienste | P252

DATEV eG
90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196
E-Mail i...@datev.de | Internet www.datev.de
Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg 
Nr.70

Vorstand
Prof. Dieter Kempf (Vorsitzender)
Dr. Robert Mayr (stellv. Vorsitzender)
Eckhard Schwarzer (stellv. Vorsitzender)
Dr. Peter Krug
Jörg Rabe von Pappenheim

Vorsitzender des Aufsichtsrates: Dirk Schmale
Description: freshclam should reload the db only on update
Author: A. Schulze
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: clamav-0.98.7/freshclam/manager.c
===================================================================
--- clamav-0.98.7.orig/freshclam/manager.c
+++ clamav-0.98.7/freshclam/manager.c
@@ -2861,7 +2861,7 @@ downloadmanager (const struct optstruct
 
     cli_rmdirs (updtmpdir);
 
-    if (checkdbdir () < 0)
+    if (updated && checkdbdir () < 0)
     {
         if (newver)
             free (newver);
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to