Mercurial > dnsbl
view test.bash @ 5:793ac9cc114d stable-1-0
updates to use dcc conf files
author | carl |
---|---|
date | Wed, 21 Apr 2004 16:09:07 -0700 |
parents | 15a7e942adec |
children | dbe18921f741 |
line wrap: on
line source
#!/bin/bash g++ -c dnsbl.cpp g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread if [ "$1" == "comp" ]; then exit fi # build the test.cf file make test.cf # start the milter pid=/var/run/dnsbl.pid echo start the milter mkdir -p /var/run/dnsbl chmod 700 /var/run/dnsbl mv -f $pid $pid.save rm -f /var/run/dnsbl/dnsbl.sock cp /var/dnsbl/*conf . ./dnsbl -c -p local:/var/run/dnsbl/dnsbl.sock >check.txt 2>&1 #sleep 5 #P2=`cat $pid` #mv -f $pid.save $pid #echo started dnsbl milter as process $P2 # #/usr/lib/sendmail -bd -Ctest.cf -Ldnsbl #sleep 5 #P3=`head -1 /var/run/sm-test.pid` #echo started sendmail as process $P3 # #echo eventually "'"kill -KILL $P2 $P3"'"