contrib/clamav/freshclam

25 lines
357 B
Plaintext
Raw Normal View History

2006-10-24 22:36:15 +02:00
#!/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