3 # clamd clamd (antyvirus daemon)
7 # description: clamd (secure shell daemon) is a server part of the ssh suite.
8 # Ssh can be used for remote login, remote file copying, TCP port
9 # forwarding etc. Ssh offers strong encryption and authentication.
12 # Source function library
13 . /etc/rc.d/init.d/functions
16 . /etc/sysconfig/network
19 [ -f /etc/sysconfig/clamd ] && . /etc/sysconfig/clamd
21 # See how we were called.
24 # Check if the service is already running?
25 if [ ! -f /var/lock/subsys/clamd ]; then
27 daemon /usr/sbin/clamd
29 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/clamd
31 msg_already_running clamd
35 if [ -f /var/lock/subsys/clamd ]; then
38 rm -f /var/run/clamd.pid /var/lock/subsys/clamd >/dev/null 2>&1
57 msg_usage "$0 {start|stop|init|status|restart|reload}"