comparison dnsbl.rc @ 105:c3e9fa6b37c6

move to autoconf/automake/docbook
author carl
date Sun, 18 Dec 2005 09:31:13 -0800
parents c1280cd3e248
children a893afee4b80
comparison
equal deleted inserted replaced
104:586d5b58040a 105:c3e9fa6b37c6
1 #!/bin/sh 1 # -- bash header installed by automake --
2 # 2 #
3 # dnsbl This script controls the dnsbl milter daemon. 3 # dnsbl This script controls the dnsbl milter daemon.
4 # 4 #
5 # 5 #
6 # chkconfig: 2345 79 31 6 # chkconfig: 2345 79 31
19 case "$1" in 19 case "$1" in
20 start) 20 start)
21 # Start daemons. 21 # Start daemons.
22 echo -n "Starting dnsbl-milter: " 22 echo -n "Starting dnsbl-milter: "
23 if [ ! -f /var/lock/subsys/dnsbl ]; then 23 if [ ! -f /var/lock/subsys/dnsbl ]; then
24 cd /etc/dnsbl # conf file is here 24 cd SYSCONFDIR # conf file is here
25 /usr/sbin/dnsbl -d 10 -r /var/run/dnsbl/dnsbl.resolver.sock -p local:/var/run/dnsbl/dnsbl.sock 25 SBINDIR/dnsbl -d 10 -r /var/run/dnsbl/dnsbl.resolver.sock -p local:/var/run/dnsbl/dnsbl.sock
26 RETVAL=$? 26 RETVAL=$?
27 pid=`pidof -s /usr/sbin/dnsbl` 27 pid=`pidof -s SBINDIR/dnsbl`
28 if [ $pid ] 28 if [ $pid ]
29 then 29 then
30 success "Starting dnsbl milter:" 30 success "Starting dnsbl milter:"
31 touch /var/lock/subsys/dnsbl 31 touch /var/lock/subsys/dnsbl
32 echo 32 echo