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

Andrew Pollock apollock at debian.org
Fri Jun 17 05:57:22 UTC 2011


On Wed, Jun 15, 2011 at 06:40:23PM -0300, Diego Morales wrote:
> 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.
> 

This is pretty much exactly how I'd have approached the problem if you'd
described it to me in a bug report.

The only problem with this approach is that it's Linux-specific, and Debian
also runs on kFreeBSD.

I think the better approach is to raise this as a bug with upstream. If
you'd like to file a bug report against Debian, I can forward it upstream
for you, or you can just email it to dhcp-bugs at isc.org directly.

regards

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-dhcp-devel/attachments/20110616/64403662/attachment-0001.pgp>


More information about the pkg-dhcp-devel mailing list