Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
avahi-daemon startup order
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
seanmcg
n00b
n00b


Joined: 13 Jun 2012
Posts: 1
Location: Canada

PostPosted: Wed Jun 13, 2012 2:53 pm    Post subject: avahi-daemon startup order Reply with quote

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
View user's profile Send private message
gerdesj
l33t
l33t


Joined: 29 Sep 2005
Posts: 622
Location: Yeovil, Somerset, UK

PostPosted: Fri Jun 22, 2012 10:50 pm    Post subject: Re: avahi-daemon startup order Reply with quote

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:

Code:

rc_after="network"


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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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