3 \cp ./materials/l7directord-2-2-1-l7directord.cf ${L7DIRECTORD_CONF_DIR}/l7directord.cf
6 RealServer1=RealServer1
7 RealServer1_ADDR=127.0.0.1
9 start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
13 echo "Test failed: start_lighttpd RealServer1"
17 RealServer2=RealServer2
18 RealServer2_ADDR=127.0.0.1
19 RealServer2_PORT=50002
20 start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT
24 echo "Test failed: start_lighttpd RealServer2"
28 RealServer3=RealServer3
29 RealServer3_ADDR=[::1]
30 RealServer3_PORT=50101
31 start_lighttpd -s $RealServer3 -a $RealServer3_ADDR -p $RealServer3_PORT -i
35 echo "Test failed: start_lighttpd RealServer3"
44 echo "Test failed: $L7VSD"
50 $INIT_L7DIRECTORD start
53 echo "Test failed: $INIT_L7DIRECTORD start"
58 RET=`ps -ef | grep l7directord | grep -v grep | grep -v umtest.sh | awk '{print $8,$9}'`
59 EXPECT="$L7DIRECTORD start
60 l7directord: http:127.0.0.1:50001:UP
61 l7directord: http:127.0.0.1:50002:UP
62 l7directord: ping:[::1]:50101:UP"
63 if [ "$RET" != "$EXPECT" ]
65 echo "Test failed: ps -ef | grep l7directord | grep -v grep | grep -v umtest.sh | awk '{print \$8,\$9}'"