#!/bin/sh # chkconfig: 2345 80 30 # description: Freshclam daemon to update the ClamAV virus signatures 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 else echo "usage: $0 start|stop" exit fi