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 <philipp.skadorov@savoirfairelinux.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Philipp Skadorov 2017-03-08 15:43:32 -05:00 committed by Thomas Petazzoni
parent 7bee455bd8
commit 61fb9bc3d6

View File

@ -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