lighttpd server runs cgi application that has no way to get environment
variables that are set up for it.
S50lighttpd is changed to source /etc/default/lighttpd file where these
environment variables can be set up.
Signed-off-by: Philipp Skadorov <philipp.skadorov@savoirfairelinux.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
PID_FILE="/var/run/$NAME.pid"
CONF_FILE="/etc/$NAME/$NAME.conf"
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
start() {
printf "Starting lighttpd: "
start-stop-daemon -S -q -p $PID_FILE --exec $DAEMON -- -f $CONF_FILE