Mercurial > dnsbl
comparison test.bash @ 0:96a9758165cd original
Initial revision
author | carl |
---|---|
date | Tue, 20 Apr 2004 20:02:29 -0700 |
parents | |
children | 15a7e942adec |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:96a9758165cd |
---|---|
1 #!/bin/bash | |
2 | |
3 g++ -c dnsbl.cpp | |
4 g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread | |
5 if [ "$1" == "comp" ]; then | |
6 exit | |
7 fi | |
8 | |
9 # build the test.cf file | |
10 make test.cf | |
11 | |
12 # start the milter | |
13 pid=/var/run/dnsbl.pid | |
14 echo start the milter | |
15 mkdir -p /var/run/dnsbl | |
16 chmod 700 /var/run/dnsbl | |
17 mv -f $pid $pid.save | |
18 rm -f /var/run/dnsbl/dnsbl.sock | |
19 ./dnsbl -p local:/var/run/dnsbl/dnsbl.sock & | |
20 sleep 5 | |
21 P2=`cat $pid` | |
22 mv -f $pid.save $pid | |
23 echo started dnsbl milter as process $P2 | |
24 | |
25 /usr/lib/sendmail -bd -Ctest.cf -Ldnsbl | |
26 sleep 5 | |
27 P3=`head -1 /var/run/sm-test.pid` | |
28 echo started sendmail as process $P3 | |
29 | |
30 echo eventually "'"kill -KILL $P2 $P3"'" | |
31 |