OSDN Git Service

Bug fix. (Line 162: /usr/sbin/l7vsd -b => /usr/sbin/l7vsd)
[ultramonkey-l7/ultramonkey-l7-v3.git] / test / script / library-parameter / parameter-59.sh
1 #!/bin/bash
2
3 # set config file
4 cp materials/parameter-59-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
5
6 #Add Service
7 $L7VSD
8 if [ $? -ne 0 ]
9 then
10         echo "Test failed: $L7VSD"
11         exit 1
12 fi
13
14 RET=`$L7VSADM -V | awk '/Replication Mode:/ { getline; print $0 }'`
15 if [ $? -ne 0 ]
16 then
17         echo "Test failed: $L7VSADM -V"
18         exit 1
19 fi
20
21 EXPECT="SINGLE"
22
23 if [ "${RET}" != "${EXPECT}" ]
24 then
25         echo "Test failed: $L7VSADM -V"
26         exit 1
27 fi
28
29 exit 0
30