#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=99
BIN=/opt/usr/sbin/lighttpd
DEFAULT=/opt/etc/default/$BIN
LOG_D=/var/log/$BIN
RUN_D=/var/run
PID_F=$RUN_D/$BIN.pid
start() {
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:/opt/usr/bin:/opt/usr/sbin
export LIB=/opt/lib:/opt/usr/lib
export LD_LIBRARY_PATH=/opt/lib:/opt/usr/lib
[ -f $DEFAULT ] && . $DEFAULT
mkdir -p $LOG_D
mkdir -p $RUN_D
#$BIN $OPTIONS > /tmp/LIGHHTTPlog.txt 2>&1
#ls -la /opt/usr/lib >> /tmp/log.txt 2>&1
/opt/usr/sbin/lighttpd -f /opt/etc/lighttpd/lighttpd.conf > /dev/null 2>&1
#echo "Lighttpd started!" >> /tmp/log.txt 2>&1
}
stop() {
[ -f $PID_F ] && kill $(cat $PID_F)
}
Žádné komentáře:
Okomentovat