On Monday 25 Jul 2005 04:38, OpenMacNews wrote:
> hi luca,
>
> per your a0.86.2 announcement, i just ul'd & installed v0.86.2 on OSX
> 10.4.2; i had previously been running v0.86.1.
>
> after install, a 'freshclam' results in:
>
>     ClamAV update process started at Sun Jul 24 19:38:48 2005
>     WARNING: Your ClamAV installation is OUTDATED!
>     WARNING: Local version: 0.86.2 Recommended version: 0.86.1
>     DON'T PANIC! Read http://www.clamav.net/faq.html
>
> which, of course, is 'backwards' ...

I have found that stopping freshclam and then starting it picks up the new 
version. -HUPing does not appear to do the trick, same goes for log rotation.

I have also renamed /etc/init.d/freshclam to /etc/init.d/freshclamd, as 
killall was also trying to kill the  /etc/init.d/freshclam. Weird but 
understandable.

Here is a modified version of the freshclam control script:
(restartquiet is for logrotation, stops spurious cron emails)

#!/bin/sh

# /etc/init.d/freshclamd

COMMAND=$1

if [ "$COMMAND" == "start" ] ; then
        echo -n "Starting freshclam daemon ... "
        /usr/local/bin/freshclam -d
        echo " done."
        exit
elif [ "$COMMAND" == "stop" ] ; then
        echo -n "Stopping freshclam daemon ... "
        killall -TERM freshclam
        echo " done."
        exit
elif [ "$COMMAND" == "reload" ] ; then
        echo -n "Restarting freshclam daemon ... "
        killall -HUP freshclam
        echo " done"
elif [ "$COMMAND" == "restart" ] ; then
        echo -n "Stopping freshclam daemon ... "
        killall -TERM freshclam
        echo " done."
        sleep 5
        echo -n "Starting freshclam daemon ... "
        /usr/local/bin/freshclam -d
        echo " done."
elif [ "$COMMAND" == "restartquiet" ] ; then
        killall -TERM freshclam
        sleep 5
        /usr/local/bin/freshclam -d
else
        echo "usage: $0 start|stop|restart|reload"
exit
fi


HTH
-- 
-----------------
Bob Hutchinson
Midwales dot com
-----------------
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to