lighttpd.init validate_conf(): print stderr trace if validation fails
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
PROG=/usr/sbin/lighttpd
validate_conf() {
- $PROG -tt -f /etc/lighttpd/lighttpd.conf >/dev/null 2>&1 || {
- echo "validation failed"
+ $PROG -tt -f /etc/lighttpd/lighttpd.conf >/dev/null || {
+ echo 1>&2 "lighttpd.conf validation failed"
return 1
}
}
}
reload_service() {
+ validate_conf || exit 1
# lighttpd graceful restart (SIGUSR1)
procd_send_signal lighttpd '*' USR1
}