From 86b39d72bd68e732f9d0e5356b0e382fdb68e1b5 Mon Sep 17 00:00:00 2001 From: pyllyukko Date: Tue, 9 Oct 2012 21:55:55 +0200 Subject: system/clamav: Fixed logging location of freshclam in rc.clamav. Send SIGHUP to freshclam too in the logrotate script Signed-off-by: Matteo Bernardini --- system/clamav/logrotate.clamav | 1 + system/clamav/rc.clamav | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/system/clamav/logrotate.clamav b/system/clamav/logrotate.clamav index 30a122ab22..0f9e3cfb9f 100644 --- a/system/clamav/logrotate.clamav +++ b/system/clamav/logrotate.clamav @@ -8,5 +8,6 @@ missingok postrotate /bin/kill -HUP `cat /var/run/clamav/clamd.pid 2>/dev/null` 2>/dev/null || true + /bin/kill -HUP `cat /var/run/clamav/freshclam.pid 2>/dev/null` 2>/dev/null || true endscript } diff --git a/system/clamav/rc.clamav b/system/clamav/rc.clamav index 67ffbcb319..d3db41f4fd 100644 --- a/system/clamav/rc.clamav +++ b/system/clamav/rc.clamav @@ -20,8 +20,8 @@ clamav_start() { echo "." # Give clamd a chance to create the socket sleep 1 - echo -n "Starting freshclam daemon: /usr/bin/freshclam -d -l /var/log/freshclam.log " - /usr/bin/freshclam -d -l /var/log/freshclam.log + echo -n "Starting freshclam daemon: /usr/bin/freshclam -d -l /var/log/clamav/freshclam.log " + /usr/bin/freshclam -d -l /var/log/clamav/freshclam.log echo "." if [ "$MILTER" == "1" ]; then echo -n "Starting clamav-milter daemon: /usr/sbin/clamav-milter -dblo --max-children=2 local:/var/run/clamav/clmilter.sock " -- cgit v1.2.3