UltraMonkey-L7 V3(multi-thread implementation)
Révision | aeb10f0808be9bad462610c2977e7f4ed7905e7e (tree) |
---|---|
l'heure | 2010-11-09 11:51:04 |
Auteur | 6638678 <6638678@1ed6...> |
Commiter | 6638678 |
bug fix.
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10427 1ed66053-1c2d-0410-8867-f7571e6e31d3
@@ -14,7 +14,6 @@ usleep 100000 | ||
14 | 14 | |
15 | 15 | #Check L7VSD Service |
16 | 16 | RET=`pgrep l7vsd` |
17 | -echo "$RET" | |
18 | 17 | if [ -z "${RET}" ] |
19 | 18 | then |
20 | 19 | echo "Test failed: pgrep l7vsd" |
@@ -23,7 +22,6 @@ fi | ||
23 | 22 | |
24 | 23 | #Check PID file |
25 | 24 | RET1=`cat /var/run/l7vsd.pid | grep "$RET"` |
26 | - | |
27 | 25 | if [ -z "${RET1}" ] |
28 | 26 | then |
29 | 27 | echo "Test failed: cat /var/run/l7vsd.pid | grep \"$RET1\"" |
@@ -37,6 +35,7 @@ then | ||
37 | 35 | echo "Test failed: $INIT_L7VSD stop" |
38 | 36 | exit 1 |
39 | 37 | fi |
38 | +sleep 1 | |
40 | 39 | |
41 | 40 | #check L7VSD Stoped |
42 | 41 | RET2=`pgrep l7vsd` |
@@ -28,7 +28,7 @@ usleep 100000 | ||
28 | 28 | $L7VSADM -A -t $VS:40001 -m sessionless -s rr -u 100 -b $SS:50001 -f 0 -Q 200K -q 200k --tproxy |
29 | 29 | if [ $? -ne 0 ] |
30 | 30 | then |
31 | - echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr -u 100 -b $SS:50001 -f 0 -Q 200K -q 200k" | |
31 | + echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr -u 100 -b $SS:50001 -f 0 -Q 200K -q 200k --tproxy" | |
32 | 32 | exit 1 |
33 | 33 | fi |
34 | 34 |
@@ -28,7 +28,7 @@ usleep 100000 | ||
28 | 28 | $L7VSADM -A -t $VS:40001 -m sessionless -s rr -u 100 -b $SS:50001 -f 0 -Q 200K -q 200k --tproxy |
29 | 29 | if [ $? -ne 0 ] |
30 | 30 | then |
31 | - echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr -u 100 -b $SS:50001 -f 0 -Q 200K -q 200k" | |
31 | + echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr -u 100 -b $SS:50001 -f 0 -Q 200K -q 200k --tproxy" | |
32 | 32 | exit 1 |
33 | 33 | fi |
34 | 34 |
@@ -28,7 +28,7 @@ usleep 100000 | ||
28 | 28 | $L7VSADM -A -t $VS:40001 -m sessionless -s rr -u 100 -b $SS:50001 -f 0 -Q 200K -q 200k --tproxy |
29 | 29 | if [ $? -ne 0 ] |
30 | 30 | then |
31 | - echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr -u 100 -b $SS:50001 -f 0 -Q 200K -q 200k" | |
31 | + echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr -u 100 -b $SS:50001 -f 0 -Q 200K -q 200k --tproxy" | |
32 | 32 | exit 1 |
33 | 33 | fi |
34 | 34 |
@@ -35,7 +35,7 @@ fi | ||
35 | 35 | $L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50001 --tproxy |
36 | 36 | if [ $? -ne 0 ] |
37 | 37 | then |
38 | - echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr" | |
38 | + echo "Test failed: $L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50001 --tproxy" | |
39 | 39 | exit 1 |
40 | 40 | fi |
41 | 41 |
@@ -35,7 +35,7 @@ fi | ||
35 | 35 | $L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50001 --tproxy |
36 | 36 | if [ $? -ne 0 ] |
37 | 37 | then |
38 | - echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr" | |
38 | + echo "Test failed: $L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50001 --tproxy" | |
39 | 39 | exit 1 |
40 | 40 | fi |
41 | 41 |
@@ -35,7 +35,7 @@ fi | ||
35 | 35 | $L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50001 --tproxy |
36 | 36 | if [ $? -ne 0 ] |
37 | 37 | then |
38 | - echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr" | |
38 | + echo "Test failed: $L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50001 --tproxy" | |
39 | 39 | exit 1 |
40 | 40 | fi |
41 | 41 |
@@ -10,7 +10,7 @@ then | ||
10 | 10 | LOG_FATAL "Can not stop l7vsd." |
11 | 11 | exit 1 |
12 | 12 | fi |
13 | - usleep 500000 | |
13 | + sleep 1 | |
14 | 14 | if [ -n "`pgrep l7vsd`" ] |
15 | 15 | then |
16 | 16 | LOG_FATAL "Can not stop l7vsd." |
@@ -22,7 +22,7 @@ if [ -n "`pgrep l7directord`" ] | ||
22 | 22 | then |
23 | 23 | ${INIT_L7DIRECTORD} stop > /dev/null 2>&1 |
24 | 24 | pkill -KILL l7directord > /dev/null 2>&1 |
25 | - usleep 500000 | |
25 | + sleep 1 | |
26 | 26 | if [ -n "`pgrep l7directord`" ] |
27 | 27 | then |
28 | 28 | LOG_FATAL "Can not stop l7directord." |