<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFCC" text="#000000">
There has been a number of times a discussion about restarting the
DHCP server. AFAICT the official method is to kill it and start
again.<br>
<br>
<div class="moz-cite-prefix">On 13/05/2016 17:02, Terry Burton
wrote:<br>
</div>
<blockquote
cite="mid:CANsiXE+fENnRkti+HAdJ0XkxzDW3ptN542QdD2qjnnfqHjQT=w@mail.gmail.com"
type="cite">
<pre wrap="">On 13 May 2016 at 15:57, Chuck Anderson <a class="moz-txt-link-rfc2396E" href="mailto:cra@wpi.edu"><cra@wpi.edu></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Fri, May 13, 2016 at 03:23:25PM +0100, Terry Burton wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 13 May 2016 at 14:22, Chuck Anderson <a class="moz-txt-link-rfc2396E" href="mailto:cra@wpi.edu"><cra@wpi.edu></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I don't know if a corrupted lease file would cause a failure to start
the dhcp server, or if it would just go unnoticed, perhaps with a log
message. But like I said, we've never had a failure to start the
server that was caused by a lease file issue.
</pre>
</blockquote>
<pre wrap="">
In our experience leases files corrupted by other means can cause a
failure to start. I don't recall whether that was due to mere
truncation though...
</pre>
</blockquote>
<pre wrap="">
There is also the -T parameter to test the lease file:
The -T flag can be used to test the lease database file in a similar way.
It might be a good idea to also use this test before restarting.
While it won't fix a corrupted lease file, it may prevent you from
losing all DHCP service due to a failure to restart.
</pre>
</blockquote>
<pre wrap="">
I think this will require the leases file to be closed at the point of
testing, i.e. the daemon has already exited.
For the more general issue with systemd verifying the configuration
see: <a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/archives/systemd-devel/2016-May/036481.html">https://lists.freedesktop.org/archives/systemd-devel/2016-May/036481.html</a>
_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Best regards
Sten Carlsen
No improvements come from shouting:
"MALE BOVINE MANURE!!!"
</pre>
</body>
</html>