mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-14 19:33:59 +02:00
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>
(cherry picked from commit 38ffa02e42
)
This commit is contained in:
parent
556d2c56e9
commit
3db5bead98
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user