3 # clamd clamd (antyvirus daemon)
7 # description: clamd is a antivirus daemon.
10 # Source function library
11 . /etc/rc.d/init.d/functions
14 . /etc/sysconfig/network
17 [ -f /etc/sysconfig/clamd ] && . /etc/sysconfig/clamd
20 # See how we were called.
23 # Check if the service is already running?
24 if [ ! -f /var/lock/subsys/clamd ]; then
26 daemon /usr/sbin/clamd
28 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/clamd
30 msg_already_running clamd
34 if [ -f /var/lock/subsys/clamd ]; then
37 rm -f /var/run/clamd.pid /var/lock/subsys/clamd >/dev/null 2>&1
52 if [ -f /var/lock/subsys/clamd ]; then
57 msg_not_running clamd >&2
62 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"