On Sat, May 21, 2011 at 03:01:39PM +0200, Marc Haber wrote:
> with the increasing deployment of IPv6 I begin to see an issue
> icreasingly often: When an interface is configured for IPv6, it takes
> a few seconds before the IPv6 address actually becomes available.
> Services that are started in this time window won't listen on IPv6,
> which may be unintended behavior. Many people see this behavior as a
> bug in the distribution, which is why I am addressing this issue here
> on -devel.

> Unfortunately, it is non-trivial to find out whether my IPv6
> configuration has completed or not. How many addresses will be
> assigned to us via stateless autoconfig? Are we running with privacy
> extensions? Do we have additional static configuration?

> The most "clean" solutions for this issue would be
> (a) Modify the services to notice when additional IP addresses come up
>     and listen there if the service is configured for that IP address
> (b) Parse the configuration of each service in the init script and
>     wait for the configured IP addresses to actually come up.

> Both solutions are rather expensive to implement.

> Is there a widely accepted method to do things any easier? It is
> clearly not acceptable to have to manually log in to a newly booted
> server to restart service, neither do I like the idea of changing
> runlevels five minutes after reboot to kick IPv6 services to life.

> Any more ideas?

With an event-based init system such as upstart, you could also set up the
service not to start until the specified interface is fully configured.  But
in general, I agree that upstream software should be intelligent about doing
the right thing when started before the network is up.

Apache, for one, seems to fail at this currently; I have an apache instance
running on my laptop which I want to bind to ipv6, but of course since it's
a roaming laptop, there isn't always an ipv6 address available at startup;
apache thinks this means it should open ipv4-only sockets, requiring a
restart once I'm on an ipv6 network. :/

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110521224251.gb29...@virgil.dodds.net

Reply via email to