view dnsbl.rc @ 27:43a4f6b3e668 stable-2-3

add configurable host name limit and bad html tag limits.
author carl
date Sat, 22 May 2004 22:30:45 -0700
parents 2ae8d953f1d0
children d95af8129dfa
line wrap: on
line source

#!/bin/sh
#
# dnsbl   This script controls the dnsbl milter daemon.
#
#
# chkconfig: 2345 79 31
# description: dnsbl is an interface between MTA and the various dns blocking lists
# processname: dnsbl
# pidfile: /var/run/dnsbl.pid
# Source function library.
#
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting dnsbl-milter: "
        cd /var/dnsbl   # conf file is here
        ./dnsbl -d -p local:/var/run/dnsbl.sock
        RETVAL=$?
        sleep 3
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsbl
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down dnsbl-milter: "
        killproc dnsbl
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsbl
        ;;
  restart|reload)
        $0 stop
        $0 start
        RETVAL=$?
        ;;
  status)
        status dnsbl
        RETVAL=$?
        ;;
  *)
        echo "Usage: dnsbl {start|stop|restart|status}"
        exit 1
esac
exit $RETVAL