blob: 5d695147a75509d1a666c964d5b119beffa2ab2a (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/freshclam: start/stop the clamav virus database updater
4 #
5
6 case $1 in
7 start)
8 /usr/bin/freshclam --quiet --daemon --checks=1 --daemon-notify \
9 --log=/var/log/clamav/freshclam.log
10 ;;
11 stop)
12 killall -q /usr/bin/freshclam
13 ;;
14 restart)
15 $0 stop
16 sleep 2
17 $0 start
18 ;;
19 *)
20 echo "Usage: $0 [start|stop|restart]"
21 ;;
22 esac
23
24 # End of file
|