OSDN Git Service

propset svn:executable
[ultramonkey-l7/ultramonkey-l7-v3.git] / test / script / snmpagent / para-4.sh
1 #!/bin/bash
2
3 # set config file
4 . ${SET_DEFAULT_CONF}
5 \cp -f materials/para-4-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
6
7 #Add Service
8 $L7VSD
9 if [ $? -ne 0 ]
10 then
11         echo "Test failed: $L7VSD"
12         exit 1
13 fi
14 usleep 100000
15
16 RET=`$L7VSADM -V | grep "cache update interval"`
17 EXPECT="cache update interval          4"
18 if [ "${RET}" != "${EXPECT}" ]
19 then
20         echo "Test failed: $L7VSADM -V"
21         exit 1
22 fi
23
24 exit 0