Bug #1602
[ntp-openrc] ntp-client starts before network is fully initialised.
Status:
open
Priority:
bug
Assignee:
-
% Done:
0%
Description
I have ntp-client added to the default runlevel. When my system boots I get:
- Setting clock via the NTP client 'ntpdate' ..
Error resolving 0.gentoo.pool.ntp.org: System error (-11)
Error resolving 1.gentoo.pool.ntp.org: System error (-11)
Error resolving 2.gentoo.pool.ntp.org: System error (-11)
Error resolving 3.gentoo.pool.ntp.org: System error (-11) - Failed to set clock
- ERROR: ntp-client failed to start
However, when I run it manually ("rc-service ntp-client restart") after booting I get no such error and the clock is adjusted as expected. I assuming that the network isn't ready for ntp-client when it starts.
I am on an SSD so it's possible that it's just "too fast" but I wonder if the init script needs tweeking, maybe some network script needs to be added to the "after" in /etc/init.d/ntp-client line.