annotate test.bash @ 6:cea50d98a6cf

start work on content url scanner
author carl
date Wed, 21 Apr 2004 22:39:46 -0700
parents 793ac9cc114d
children dbe18921f741
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
96a9758165cd Initial revision
carl
parents:
diff changeset
1 #!/bin/bash
96a9758165cd Initial revision
carl
parents:
diff changeset
2
96a9758165cd Initial revision
carl
parents:
diff changeset
3 g++ -c dnsbl.cpp
96a9758165cd Initial revision
carl
parents:
diff changeset
4 g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread
96a9758165cd Initial revision
carl
parents:
diff changeset
5 if [ "$1" == "comp" ]; then
96a9758165cd Initial revision
carl
parents:
diff changeset
6 exit
96a9758165cd Initial revision
carl
parents:
diff changeset
7 fi
96a9758165cd Initial revision
carl
parents:
diff changeset
8
96a9758165cd Initial revision
carl
parents:
diff changeset
9 # build the test.cf file
96a9758165cd Initial revision
carl
parents:
diff changeset
10 make test.cf
96a9758165cd Initial revision
carl
parents:
diff changeset
11
96a9758165cd Initial revision
carl
parents:
diff changeset
12 # start the milter
96a9758165cd Initial revision
carl
parents:
diff changeset
13 pid=/var/run/dnsbl.pid
96a9758165cd Initial revision
carl
parents:
diff changeset
14 echo start the milter
96a9758165cd Initial revision
carl
parents:
diff changeset
15 mkdir -p /var/run/dnsbl
96a9758165cd Initial revision
carl
parents:
diff changeset
16 chmod 700 /var/run/dnsbl
96a9758165cd Initial revision
carl
parents:
diff changeset
17 mv -f $pid $pid.save
96a9758165cd Initial revision
carl
parents:
diff changeset
18 rm -f /var/run/dnsbl/dnsbl.sock
5
793ac9cc114d updates to use dcc conf files
carl
parents: 4
diff changeset
19 cp /var/dnsbl/*conf .
4
15a7e942adec updates to use dcc conf files
carl
parents: 0
diff changeset
20 ./dnsbl -c -p local:/var/run/dnsbl/dnsbl.sock >check.txt 2>&1
15a7e942adec updates to use dcc conf files
carl
parents: 0
diff changeset
21 #sleep 5
15a7e942adec updates to use dcc conf files
carl
parents: 0
diff changeset
22 #P2=`cat $pid`
15a7e942adec updates to use dcc conf files
carl
parents: 0
diff changeset
23 #mv -f $pid.save $pid
15a7e942adec updates to use dcc conf files
carl
parents: 0
diff changeset
24 #echo started dnsbl milter as process $P2
15a7e942adec updates to use dcc conf files
carl
parents: 0
diff changeset
25 #
15a7e942adec updates to use dcc conf files
carl
parents: 0
diff changeset
26 #/usr/lib/sendmail -bd -Ctest.cf -Ldnsbl
15a7e942adec updates to use dcc conf files
carl
parents: 0
diff changeset
27 #sleep 5
15a7e942adec updates to use dcc conf files
carl
parents: 0
diff changeset
28 #P3=`head -1 /var/run/sm-test.pid`
15a7e942adec updates to use dcc conf files
carl
parents: 0
diff changeset
29 #echo started sendmail as process $P3
15a7e942adec updates to use dcc conf files
carl
parents: 0
diff changeset
30 #
15a7e942adec updates to use dcc conf files
carl
parents: 0
diff changeset
31 #echo eventually "'"kill -KILL $P2 $P3"'"
0
96a9758165cd Initial revision
carl
parents:
diff changeset
32