#!/bin/sh 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