Project

General

Profile

Actions

Bug #2225

closed

Silent failure

Added by Olaf-van-der-Spek almost 14 years ago. Updated about 8 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

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.

  1. /bin/false || echo fail
    fail
  2. /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.

Actions #1

Updated by stbuehler almost 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.

Actions #2

Updated by Olaf-van-der-Spek almost 14 years ago

I don't remember the reason for forking so early. Why does it fork so early?

Actions #3

Updated by gstrauss about 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.

Actions

Also available in: Atom