aboutsummaryrefslogtreecommitdiff
path: root/net/lighttpd
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-11-27 15:39:24 -0500
committerRosen Penev <rosenp@gmail.com>2022-12-01 19:02:21 -0800
commit38ffa02e422bac544eee9578830a8b6a49265be1 (patch)
treedbfd4ac3645af80cddb0e6789721c5626d5423a1 /net/lighttpd
parent9ac99b72bbe5b63896109e5e3522fa2d0bfb03da (diff)
lighttpd: print stderr trace if validation fails
lighttpd.init validate_conf(): print stderr trace if validation fails Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
Diffstat (limited to 'net/lighttpd')
-rw-r--r--net/lighttpd/files/lighttpd.init5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/lighttpd/files/lighttpd.init b/net/lighttpd/files/lighttpd.init
index 1d290063e..04de17845 100644
--- a/net/lighttpd/files/lighttpd.init
+++ b/net/lighttpd/files/lighttpd.init
@@ -8,8 +8,8 @@ USE_PROCD=1
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
}
}
@@ -34,6 +34,7 @@ service_triggers() {
}
reload_service() {
+ validate_conf || exit 1
# lighttpd graceful restart (SIGUSR1)
procd_send_signal lighttpd '*' USR1
}