Mercurial > dnsbl
annotate dnsbl.rc.in @ 465:79e944269c0b
SA needs original rfc5321 envelope from to do proper spf checking. Remove some debug code.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 25 Apr 2019 09:35:53 -0700 |
parents | df7dc6b2b153 |
children |
rev | line source |
---|---|
163 | 1 #!@BASH@ |
2 # | |
3 # dnsbl This script controls the dnsbl milter daemon. | |
4 # | |
5 # | |
6 # chkconfig: 2345 79 31 | |
7 # description: dnsbl is an interface between MTA and the various dns blocking lists | |
8 # processname: dnsbl | |
9 # pidfile: /var/run/dnsbl.pid | |
10 # Source function library. | |
11 # | |
12 . /etc/rc.d/init.d/functions | |
13 | |
14 # Source networking configuration. | |
15 . /etc/sysconfig/network | |
16 | |
17 RETVAL=0 | |
18 # See how we were called. | |
19 case "$1" in | |
20 start) | |
21 # Start daemons. | |
22 echo -n "Starting dnsbl-milter: " | |
23 if [ ! -f /var/lock/subsys/dnsbl ]; then | |
24 cd SYSCONFDIR/dnsbl # conf file is here | |
371
df7dc6b2b153
install dnsblnogrey/whiteclnt for dccifd
Carl Byington <carl@five-ten-sg.com>
parents:
211
diff
changeset
|
25 SBINDIR/dnsbl -d 10 -b /var/dcc/dccifd -r /var/run/dnsbl/dnsbl.resolver.sock -p local:/var/run/dnsbl/dnsbl.sock |
163 | 26 RETVAL=$? |
27 pid=`pidof -s SBINDIR/dnsbl` | |
28 if [ $pid ] | |
29 then | |
30 success "Starting dnsbl milter:" | |
31 touch /var/lock/subsys/dnsbl | |
32 echo | |
33 else | |
34 failure "Starting dnsbl milter:" | |
35 echo | |
36 fi | |
37 else | |
38 echo -n "already running! " | |
39 failure "dnsbl milter already running!" | |
40 echo | |
41 fi | |
42 | |
43 ;; | |
44 stop) | |
45 # Stop daemons. | |
46 echo -n "Shutting down dnsbl-milter: " | |
47 killproc dnsbl | |
48 RETVAL=$? | |
49 echo | |
50 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsbl | |
51 ;; | |
52 restart|reload) | |
53 $0 stop | |
54 $0 start | |
55 RETVAL=$? | |
56 ;; | |
57 status) | |
58 status dnsbl | |
59 RETVAL=$? | |
60 ;; | |
61 *) | |
62 echo "Usage: dnsbl {start|stop|restart|status}" | |
63 exit 1 | |
64 esac | |
65 exit $RETVAL |