LIGHTTPD_CONF="/etc/lighttpd/lighttpd.conf"
# Location of the lighttpd pid file
LIGHTTPD_PID="/var/run/lighttpd.pid"
LIGHTTPD_PID="$(/usr/bin/awk '/^server.pid-file/{s=$3};{sub("\"","",s)};END{print s}' ${LIGHTTPD_CONF})"
return 1
fi
if [ -z "${LIGHTTPD_PID}" ] ; then
ewarn "servber.pid-file variable in ${LIHTTPD_CONF}"
ewarn "is not set. Falling back to lighttpd.pid"
LIGHTTPD_PID="lighttpd.pid"
/usr/sbin/lighttpd -t -f ${LIGHTTPD_CONF} >/dev/null
}