contrib/clamav/freshclam
2006-10-24 15:36:15 -05:00

25 lines
357 B
Bash

#!/bin/sh
#
# /etc/rc.d/freshclam: start/stop the clamav virus database updater
#
case $1 in
start)
/usr/bin/freshclam --quiet --daemon --checks=1 --daemon-notify \
--log=/var/log/clamav/freshclam.log
;;
stop)
killall -q /usr/bin/freshclam
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "Usage: $0 [start|stop|restart]"
;;
esac
# End of file