Bug #2225
closedSilent failure
Description
It seems Lighttpd returns 0, even when startup fails. It should not return 0 in that case.
Printing an error message to stderr would be nice too.
- /bin/false || echo fail
fail - /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf || echo fail #
/var/log/lighttpd:
2010-06-15 22:03:32: (log.c.166) server started
2010-06-15 22:03:32: (configfile-glue.c.162) ERROR: unexpected type for key: allow-x-send-file (string) "(enable|disable)"
2010-06-15 22:03:32: (server.c.931) Configuration of plugins failed. Going down.
Updated by stbuehler over 14 years ago
- Status changed from New to Wontfix
- Target version deleted (
1.4.28)
I think we discussed this more than once: as lighty forks before validating the semantic of the config it is too late for that.
Updated by Olaf-van-der-Spek over 14 years ago
I don't remember the reason for forking so early. Why does it fork so early?
Updated by gstrauss over 8 years ago
- Category set to core
- Status changed from Wontfix to Fixed
- Target version set to 1.4.40
Fixed with https://github.com/lighttpd/lighttpd1.4/pull/32
lighttpd parent process will exit non-zero if config parsing fails.
Also available in: Atom