Re: can dhcpd keep working when encountering a syntax error
we use the -t option (syntax check) to check if the conf file looks ok and if so, then we restart the service. if the syntax is not ok, we report the error by mail
the downside to this is, that the daemon reports the copyright notice and an unexpirienced worker tought, that there is a problem because the service was so often restarted. we did adjust the logging and now everything works fine
On Wed, Sep 02, 2020 at 10:24:48AM -0500, Pat Dery wrote:
> is it possible to configure dhcpd to keep working when the dhcpd.conf
> contains a syntax error
The usual way to do this would be to create a script for restarting
the DHCP server. Then, before restarting the server, use the "-t" option
to test the configuration file. If the test fails, exit and leave the
old version running.
Bruce A. Hudson | [hidden email] ITS, Networks and Systems |
Dalhousie University |
Halifax, Nova Scotia, Canada | (902) 494-3405
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.