git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10187
1ed66053-1c2d-0410-8867-
f7571e6e31d3
# 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"