[Pkg-utopia-maintainers] Bug#409513: ifup and ifdown slow becouse of avahi-deamon script

Trent Lloyd lathiat at bur.st
Wed Feb 21 14:32:23 UTC 2007


On Wed, Feb 21, 2007 at 02:28:37PM +0100, Reinhard Tartler wrote:
> severity 409513 important
> 
> On Sat, Feb 03, 2007 at 06:58:43PM +0100, Andrzej Zi??ba wrote:
> > Configuring network interfaces at boot and deconfiguring at shut down
> > takes 10s or so.
> 
> I see this as well.
> 
> > I think that the long time out at system shut down happens because 
> > avahi-daemon script is called from /etc/network/if-post-down.d/ and not 
> > from /etc/network/if-down.d.
> 
> I rather think this is because /etc/network/if-up.d/avahi-daemon uses
> the 'host' binary to check if the local system administrator has
> configured a dns for the '.local' TLD.
> 
> Please remove this check from that script. A better place would be
> in preinst of the package. This way, every user of avahi (including
> depending packages like kdenetwork, ...) has to suffer a 2 sec penalty
> at boot time.

This check is done at IP up time because this is in no way a once-off
check, it could vary from network to network

That said being in post-down.d is completely braindead and should be
removed from there.

On Ubuntu the network interfaces are bought up in the background so it
doesn't cause any delays I beleive Debian still does this in the
foreground however, perhaps we can affect the timeout value of 'host'?

Cheers,
Trent




More information about the Pkg-utopia-maintainers mailing list