From: Philipp Skadorov Date: Wed, 8 Mar 2017 20:43:32 +0000 (-0500) Subject: lighttpd: source default file from startup script X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61fb9bc3d696a48a09c0be63e29e1e28b706014e;p=buildroot.git lighttpd: source default file from startup script 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 Signed-off-by: Thomas Petazzoni --- diff --git a/package/lighttpd/S50lighttpd b/package/lighttpd/S50lighttpd index 7a14ec8a90..b3518cd278 100644 --- a/package/lighttpd/S50lighttpd +++ b/package/lighttpd/S50lighttpd @@ -7,6 +7,8 @@ DAEMON=/usr/sbin/$NAME 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