]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/clamav
Setup weiter ausgebaut.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / clamav
1 #!/bin/sh
2 # Begin $rc_base/init.d/clamav
3
4 . /etc/sysconfig/rc
5 . $rc_functions
6
7 case "$1" in
8 start)
9 boot_mesg "Starting Clamav Definition Updater..."
10 loadproc /usr/bin/freshclam -d -c 10
11
12 boot_mesg "Starting Clamav Daemon..."
13 loadproc /usr/sbin/clamd
14 ;;
15
16 stop)
17 boot_mesg "Stopping Clamav Definition Updater..."
18 killproc /usr/bin/freshclam
19
20 boot_mesg "Stopping Clamav Daemon..."
21 killproc /usr/sbin/clamd
22 ;;
23
24 restart)
25 $0 stop
26 sleep 1
27 $0 start
28 ;;
29
30 status)
31 statusproc /usr/sbin/clamd
32 statusproc /usr/bin/freshclam
33 ;;
34
35 *)
36 echo "Usage: $0 {start|stop|restart|status}"
37 exit 1
38 ;;
39 esac
40
41 # End $rc_base/init.d/clamav