3 \cp ./materials/C-8-IPv4v4-l7directord.cf ${L7DIRECTORD_CONF_DIR}/l7directord.cf
9 RealServer1=RealServer1
11 RealServer1_PORT=50001
12 start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
15 echo "Test failed: start_lighttpd RealServer1"
19 RealServer2=RealServer2
21 RealServer2_PORT=50002
22 start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT
25 echo "Test failed: start_lighttpd RealServer2"
33 echo "Test failed: $L7VSD"
39 $INIT_L7DIRECTORD start
42 echo "Test failed: $INIT_L7DIRECTORD start"
47 RET=`$INIT_L7DIRECTORD status 2>&1 | grep "l7directord for .${L7DIRECTORD_CONF_DIR}/l7directord.cf' is running with pid:"`
50 echo "Test failed: $INIT_L7DIRECTORD status "
56 EXPECT="Layer-7 Virtual Server version 3.0.0
57 Prot LocalAddress:Port ProtoMod Scheduler
58 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
59 TCP localhost:50000 sessionless rr
60 -> localhost:50001 Masq 1 0 0
61 -> localhost:50002 Masq 1 0 0 "
62 if [ "$RET" != "$EXPECT" ]
64 echo "Test failed: $L7VSADM"