OSDN Git Service

bug fix
author6638678 <6638678@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Thu, 5 Aug 2010 10:11:43 +0000 (10:11 +0000)
committer6638678 <6638678@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Thu, 5 Aug 2010 10:11:43 +0000 (10:11 +0000)
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10187 1ed66053-1c2d-0410-8867-f7571e6e31d3

test/script/common/check_env.sh

index 44b1d89..0bd2ebf 100755 (executable)
@@ -62,22 +62,14 @@ check_uml7 (){
 
 # check Lighty installed
 check_http_server (){
-        LIGHTTPD="/usr/sbin/lighttpd"
-       INIT_LIGHTTPD="/etc/init.d/lighttpd"
+        LIGHTTPD=`which lighttpd`
        if [ ! -e ${LIGHTTPD} ]
        then
                LOG_FATAL "${LIGHTTPD} not exist. "
                 exit 1
        fi
-
-       if [ !  -e ${INIT_LIGHTTPD} ]
-        then
-                LOG_FATAL "${INIT_LIGHTTPD} not exist. "
-                exit 1
-        fi
 }
 
-
 # check commands installed
 check_commands (){
        WGET="/usr/bin/wget"