OSDN Git Service

trunk整理
[ultramonkey-l7/ultramonkey-l7-v3.git] / test / script / l7directord / l7directord-1-2-15-2.sh
1 #!/bin/bash
2 . ${SET_DEFAULT_CONF}
3
4 RET=`ps -ef | grep "l7directord start"| grep -v grep`
5 if [ -n "$RET" ]
6 then
7         echo "Test failed: ps -ef | grep l7directord start | grep -v grep"
8         exit 1
9 fi
10
11 RET=`$INIT_L7DIRECTORD stop 2>&1 | grep "Stopping l7directord ... l7directord process is not running."`
12 usleep 100000
13 if [ -z "$RET" ]
14 then
15         echo "Test failed: $INIT_L7DIRECTORD stop"
16         exit 1
17 fi
18
19 RET=`ps -ef | grep "l7directord start"| grep -v grep`
20 if [ -n "$RET" ]
21 then
22         echo "Test failed: ps -ef | grep l7directord start | grep -v grep"
23         exit 1
24 fi
25
26 exit 0
27
28