OSDN Git Service
(root)
/
ultramonkey-l7
/
ultramonkey-l7-v3.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Change version number
[ultramonkey-l7/ultramonkey-l7-v3.git]
/
test
/
script
/
l7vsadm
/
l7vsadm-4-1-29-3.sh
1
#!/bin/bash
2
3
. ${SET_DEFAULT_CONF}
4
5
#Add Service
6
$L7VSD
7
if [ $? -ne 0 ]
8
then
9
echo "Test failed: $L7VSD"
10
exit 1
11
fi
12
usleep 100000
13
14
RET=`$L7VSADM -A -t localhost:40001 -m ip -q 100M 2>&1`
15
if [ $? -ne 0 ]
16
then
17
echo "Test failed: $L7VSADM -A -t localhost:40001 -m ip -q 100M"
18
exit 1
19
fi
20
21
if [ -n "$RET" ]
22
then
23
echo "Test failed: $L7VSADM -A -t localhost:40001 -m ip -q 100M"
24
exit 1
25
fi
26
27
exit 0
28