[pkg-dhcp-devel] Test for interface existence on dhcp-relay startup?

Diego Morales morales at propus.com.br
Wed Jun 15 21:40:23 UTC 2011


Hello,

When dhcp-relay receives an -i argument for an interface that does not exist, it crashes. It does not give any helpful error message before it dies. I know that's just a plain configuration error, but it might be a quite frequent mistake I guess. 

So in my server I've changed the startup script to check if the interface exists while constructing the cmdline. I've attached the patch (git diff against current git://git.debian.org/pkg-dhcp/isc-dhcp.git).

I wonder if you think this is an acceptable change and would consider including it (or some variation) in your package.

Thank you for your time,



Diego Morales
Propus Informática LTDA.
+55 51 3024.3568 / 412
http://www.propus.com.br

-------------- next part --------------
A non-text attachment was scrubbed...
Name: isc-dhcp-relay.init.d-diff
Type: text/x-patch
Size: 947 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-dhcp-devel/attachments/20110615/8b5ed41a/attachment-0001.bin>


More information about the pkg-dhcp-devel mailing list