View previous topic :: View next topic |
Author |
Message |
seanmcg n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Jun 2012 Posts: 1 Location: Canada
|
Posted: Wed Jun 13, 2012 2:53 pm Post subject: avahi-daemon startup order |
|
|
Hi folks,
Now that global IPv6 is becoming more and more of a reality, I've been reviewing many of my machine configurations to see how well they play with IPv6.
I noticed that when I reboot, avahi-daemon is starting before my IPv6 link is configured and it starts talking to my LDAP server on IPv4. If I restart it manually, it then switches to IPv6.
How do I tell it to start late enough to use IPv6 instead, is there some kind of dependancy I should change for the avahi-daemon service?
Thanks in advance,
Sean |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gerdesj l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 29 Sep 2005 Posts: 622 Location: Yeovil, Somerset, UK
|
Posted: Fri Jun 22, 2012 10:50 pm Post subject: Re: avahi-daemon startup order |
|
|
seanmcg wrote: | Hi folks,
Now that global IPv6 is becoming more and more of a reality, I've been reviewing many of my machine configurations to see how well they play with IPv6.
I noticed that when I reboot, avahi-daemon is starting before my IPv6 link is configured and it starts talking to my LDAP server on IPv4. If I restart it manually, it then switches to IPv6.
How do I tell it to start late enough to use IPv6 instead, is there some kind of dependancy I should change for the avahi-daemon service?
Thanks in advance,
Sean |
Assuming you use OpenRC, you can set dependencies. The doc is in /etc/rc.conf under SERVICE CONFIGURATION VARIABLES.
It seems you create /etc/conf.d/avahi-daemon and add this:
If your IPv6 address is coming in really late then set the depend to something late in the boot process like "local" which I think is last!
If that does not work then call a script from /etc/local.d/myscript.start with a delay in it ...
Cheers
Jon |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|