3 # clamd clamd (antyvirus daemon)
7 # description: clamd is a antivirus daemon.
10 # pidfile: /var/run/clamav/clamd.pid
14 # Source function library
15 . /etc/rc.d/init.d/functions
18 [ -f /etc/sysconfig/clamd ] && . /etc/sysconfig/clamd
21 # Check if the service is already running?
22 if [ ! -f /var/lock/subsys/clamd ]; then
24 daemon /usr/sbin/clamd
26 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/clamd
28 msg_already_running clamd
33 if [ -f /var/lock/subsys/clamd ]; then
35 killproc --pidfile clamav/clamd.pid clamd
36 rm -f /var/run/clamav/clamd.pid /var/lock/subsys/clamd >/dev/null 2>&1
43 if [ -f /var/lock/subsys/clamd ]; then
54 if [ -f /var/lock/subsys/clamd ]; then
64 # See how we were called.
87 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"