Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenRC - make service wait for IP address
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
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 751
Location: Columbus, OH

PostPosted: Tue May 31, 2016 12:22 am    Post subject: OpenRC - make service wait for IP address Reply with quote

I have ntp-client on my server at boot to set the clock (and then ntpd to maintain it and provide time services to my network). I'm also using ifplugd to hotplug my ethernet, so things can be unplugged/replugged without having to log in and restart network services. The issue I'm having is, ifplugd essentially "backgrounds" dhcp, and then ntp-client tries to start before I have an IP address, and thus never starts successfully. Is there something I can put in /etc/conf.d/ntp-client to make it wait until after I have an IP? I tried rc_need="net.eth1" but that didn't work.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Tue May 31, 2016 5:46 am    Post subject: Reply with quote

Sounds very similar to bug 522206 where OpenRC bug 523174 is involved.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5586

PostPosted: Tue May 31, 2016 5:29 pm    Post subject: Reply with quote

Try rc_need="net-online".
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