3 # exiscan Antyvirus scanner
6 # description: Middle man between exim and real virus scanner
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 . /etc/sysconfig/network
16 [ -f /etc/sysconfig/exiscan ] && . /etc/sysconfig/exiscan
18 # Check that networking is up.
19 if is_yes "${NETWORKING}"; then
20 if [ ! -f /var/lock/subsys/network ]; then
21 # nls "ERROR: Networking is down. %s can't be run." <service>
22 msg_network_down <service>
29 # See how we were called.
32 # Check if the service is already running?
33 if [ ! -f /var/lock/subsys/exiscan ]; then
35 if ! (grep -q "queue_only.*=.*true"); then
37 echo "exim.conf: queue_only = true is missing"
40 daemon exiscan /etc/mail/exiscan2.cf
43 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/exiscan
45 msg_Already_Running exiscan
51 if [ -f /var/lock/subsys/exiscan ]; then
54 rm -f /var/lock/subsys/exiscan > /dev/null 2>&1
56 msg_Not_Running exiscan
70 msg_Usage "$0 {start|stop|restart|status}"