Package: dhcp3-server Version: 3.0.1-1 Severity: normal
The current dhcp3-server init script restarts dhcpd even if there's a problem with the config file. The server provides a method for testing whether the config file is valid before stopping the currently running daemon, which if used would avoid the dhcp server ever being stopped then failing to restart with the 'restart' argument to the init script. Network admins usually don't like finding their network without a DHCP server due to a typo. While they can test the config themselves before restarting dhcpd, it seems better if the init script performed this sanity check. The code below should do the trick nicely when added to the init script just before the case statement. Alternately it could be called as a function from the stop and restart sections of the script. ---- # Refuse to do anything if the DHCP server config is invalid if ! /usr/sbin/dhcpd3 -t >& /dev/null; then echo "DHCPd self-test failed. Please fix the config file." echo "The error was: " /usr/sbin/dhcpd3 -t exit 1 fi ---- -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-1-386 Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1) Versions of packages dhcp3-server depends on: ii debconf 1.4.30.11 Debian configuration management sy ii debianutils 2.8.4 Miscellaneous utilities specific t ii dhcp3-common 3.0.1-1 Common files used by all the dhcp3 ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an -- debconf information: * dhcp3-server/new_auth_behavior: * dhcp3-server/interfaces: eth0 * dhcp3-server/config_warn: -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]