[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [OSSTEST PATCH] cat-dhcp-leases: new script



On Fri, 2014-10-03 at 16:06 +0100, Ian Jackson wrote:
> ISC dhcpd treates /var/lib/dhcp3/leases as a log-structured database,
> appending records to it and periodically rewriting it.  When it
> decides to rewrite it it writes the new contents to a temporary file -
> fine.
> 
> But rather than renaming the temporary file into place, over the top
> of the old file, using rename(2), it first renames the old leases file
> to leases~.  So briefly there is no leases file.
> 
> This means that the service used by Osstest/DhcpWatch/leases.pm when a
> hostname and port is specified has to try various different files.
> 
> This is the appropriate shell script, which is most conveniently
> maintained here in osstest.  It can be used by putting something like
> this in inetd.conf:
> 
> 5556 stream tcp nowait nobody /root/cat-dhcp-leases cat-dhcp-leases
> 
> Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

How very tedious.

Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.