Restarting DHCP safely whilst avoiding partner-down state

Chuck Anderson cra at WPI.EDU
Sat May 14 03:12:24 UTC 2016


On Fri, May 13, 2016 at 07:49:12PM +0100, Terry Burton wrote:
> On 13 May 2016 at 19:26, Simon Hobson <dhcp1 at thehobsons.co.uk> wrote:
> > Chuck Anderson <cra at WPI.EDU> wrote:
> >
> >> Is there a way to signal dhcpd to write out the lease file so it can
> >> be checked?
> >
> > Surely a simple change would be to not act on a normal kill signal in the middle of a lease file write ? Capture that the signal arrived, and act on it as soon as the complete lease has been written.
> > That one change alone would completely remove the "wrote half a lease to the file" issue.
> 
> I couldn't agree more...

Since the code to close a lease file and start appending to a new one
already exists, it doesn't seem a stretch to just call that code in
the SIGTERM handler...


More information about the dhcp-users mailing list