dhcp3-server init script fails to show problem in configuration file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dhcp3 (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
Binary package hint: dhcp3-server
Tested in dhcp3-server-
Steps to reproduce:
1) enter a configuration error in the configuration file (i.e: /etc/dhcp3/
2) restart the dhcp server
3) You'll receive:
dhcpd self-test failed. Please fix the config file.
The error was:
4) no error displayed
This is a simple fix to the problem, assuming that the intention to use '-q' in the original file was to supress ISC copyright and thus the sed was added
--- ./etc/init.
+++ ./etc/init.
@@ -39,7 +39,7 @@
if ! /usr/sbin/dhcpd3 -t -cf $CONFIG_FILE > /dev/null 2>&1; then
- /usr/sbin/dhcpd3 -t -q -cf $CONFIG_FILE
+ /usr/sbin/dhcpd3 -t -cf $CONFIG_FILE 2>&1| sed '1,4d'
fi
}
Related branches
Changed in dhcp3: | |
status: | In Progress → Fix Committed |
Thank you!