View previous topic :: View next topic |
Author |
Message |
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 794 Location: Columbus, OH
|
Posted: Tue May 31, 2016 12:22 am Post subject: OpenRC - make service wait for IP address |
|
|
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 |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Tue May 31, 2016 5:46 am Post subject: |
|
|
Sounds very similar to bug 522206 where OpenRC bug 523174 is involved. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue May 31, 2016 5:29 pm Post subject: |
|
|
Try rc_need="net-online". |
|
Back to top |
|
|
|