Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/ntp.conf versus /etc/conf.d/ntp-client & other ntp conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
nap
n00b
n00b


Joined: 18 Aug 2017
Posts: 10

PostPosted: Sun May 20, 2018 5:39 am    Post subject: /etc/ntp.conf versus /etc/conf.d/ntp-client & other ntp Reply with quote

[Linux 2.6.33.9-rt31-aldebaran-rt #1 SMP PREEMPT RT Thu Aug 27 21:42:34 CEST 2015 i686 Intel(R) Atom(TM) CPU Z530 @ 1.60GHz GenuineIntel GNU/Linux]

For some reason my Gentoo is not retrieving the network time on boot. So I've been trying to fix this. The system running Gentoo is off/rebooted frequently, so I'm think I should have ntp-client run once when I boot and then have ntpd take over. (I would also be happy to simply use ntpd, assuming the driftfile, /var/lib/ntp/ntp.drift, is working correctly.)

Here is what I've done so far:
  1. I have modified /etc/ntp.conf to use servers near me, and set other parameters to suitable values.
  2. I have ntp-client and ntpd set to the 'default' runlevel. (ntpd has an "after" dependency on ntp-client)
  3. In /etc/conf.d/ntp-client, I commented out the "NTPCLIENT_OPTS -s gentoo.pool.ntp.org, 0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org" hoping this would force /etc/conf.d/ntp-client to use /etc/ntp.conf, but instead the script complains that it needs the NTPCLIENT_OPTS variable set. (As I've been writing this, I've now set this variable to my chosen servers.)
  4. I have also read that ntp-client can fail because it may be invoked before a network connection is established, so I've set rc_use="dns" in my /etc/conf.d/ntp-client.

What I don't understand is why the ntp-client service isn't using /etc/ntp.conf, which has a much more comprehensive list of settings? If ntpd uses /etc/ntp.conf, shouldn't it be named ntpd.conf instead?

Cheers, Nap.
Back to top
View user's profile Send private message
nap
n00b
n00b


Joined: 18 Aug 2017
Posts: 10

PostPosted: Sun May 20, 2018 6:04 am    Post subject: Reply with quote

I have now moved the 'ntp-client' service to /etc/local.d, and the time is being set, but I have a bunch of stuff in the syslog file that I would like to clean up (I've filtered non-ntp related messages). In particular, the early "not known" errors.

Code:

Sep 17 00:01:24 lena sntp[3489]: Started sntp
Sep 17 00:01:24 lena sntp[3489]: Error looking up server: Name or service not known
Sep 17 00:01:24 lena sntp[3489]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:24 lena sntp[3489]: Error looking up server: Name or service not known
Sep 17 00:01:24 lena sntp[3489]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:24 lena sntp[3489]: Error looking up server: Name or service not known
Sep 17 00:01:24 lena sntp[3489]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:24 lena sntp[3489]: Error looking up server: Name or service not known
Sep 17 00:01:24 lena sntp[3489]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:25 lena sntp[3491]: Started sntp
Sep 17 00:01:25 lena sntp[3491]: Error looking up server: Name or service not known
Sep 17 00:01:25 lena sntp[3491]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:25 lena sntp[3491]: Error looking up server: Name or service not known
Sep 17 00:01:25 lena sntp[3491]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:25 lena sntp[3491]: Error looking up server: Name or service not known
Sep 17 00:01:25 lena sntp[3491]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:25 lena sntp[3491]: Error looking up server: Name or service not known
Sep 17 00:01:25 lena sntp[3491]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:26 lena sntp[3493]: Started sntp
Sep 17 00:01:26 lena sntp[3493]: Error looking up server: Name or service not known
Sep 17 00:01:26 lena sntp[3493]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:26 lena sntp[3493]: Error looking up server: Name or service not known
Sep 17 00:01:26 lena sntp[3493]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:26 lena sntp[3493]: Error looking up server: Name or service not known
Sep 17 00:01:26 lena sntp[3493]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:26 lena sntp[3493]: Error looking up server: Name or service not known
Sep 17 00:01:26 lena sntp[3493]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:27 lena sntp[3495]: Started sntp
Sep 17 00:01:27 lena sntp[3495]: Error looking up server: Name or service not known
Sep 17 00:01:27 lena sntp[3495]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:27 lena sntp[3495]: Error looking up server: Name or service not known
Sep 17 00:01:27 lena sntp[3495]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:27 lena sntp[3495]: Error looking up server: Name or service not known
Sep 17 00:01:27 lena sntp[3495]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:27 lena sntp[3495]: Error looking up server: Name or service not known
Sep 17 00:01:27 lena sntp[3495]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:28 lena sntp[3497]: Started sntp
Sep 17 00:01:28 lena sntp[3497]: Error looking up server: Name or service not known
Sep 17 00:01:28 lena sntp[3497]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:28 lena sntp[3497]: Error looking up server: Name or service not known
Sep 17 00:01:28 lena sntp[3497]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:28 lena sntp[3497]: Error looking up server: Name or service not known
Sep 17 00:01:28 lena sntp[3497]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:28 lena sntp[3497]: Error looking up server: Name or service not known
Sep 17 00:01:28 lena sntp[3497]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:29 lena sntp[3499]: Started sntp
Sep 17 00:01:29 lena sntp[3499]: Error looking up server: Name or service not known
Sep 17 00:01:29 lena sntp[3499]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:29 lena sntp[3499]: Error looking up server: Name or service not known
Sep 17 00:01:29 lena sntp[3499]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:29 lena sntp[3499]: Error looking up server: Name or service not known
Sep 17 00:01:29 lena sntp[3499]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:29 lena sntp[3499]: Error looking up server: Name or service not known
Sep 17 00:01:29 lena sntp[3499]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:30 lena sntp[3501]: Started sntp
Sep 17 00:01:30 lena sntp[3501]: Error looking up server: Name or service not known
Sep 17 00:01:30 lena sntp[3501]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:30 lena sntp[3501]: Error looking up server: Name or service not known
Sep 17 00:01:30 lena sntp[3501]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:30 lena sntp[3501]: Error looking up server: Name or service not known
Sep 17 00:01:30 lena sntp[3501]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:30 lena sntp[3501]: Error looking up server: Name or service not known
Sep 17 00:01:30 lena sntp[3501]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:31 lena sntp[3503]: Started sntp
Sep 17 00:01:31 lena sntp[3503]: Error looking up server: Name or service not known
Sep 17 00:01:31 lena sntp[3503]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:31 lena sntp[3503]: Error looking up server: Name or service not known
Sep 17 00:01:31 lena sntp[3503]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:31 lena sntp[3503]: Error looking up server: Name or service not known
Sep 17 00:01:31 lena sntp[3503]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:31 lena sntp[3503]: Error looking up server: Name or service not known
Sep 17 00:01:31 lena sntp[3503]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:32 lena sntp[3505]: Started sntp
Sep 17 00:01:32 lena sntp[3505]: Error looking up server: Name or service not known
Sep 17 00:01:32 lena sntp[3505]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:32 lena sntp[3505]: Error looking up server: Name or service not known
Sep 17 00:01:32 lena sntp[3505]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:32 lena sntp[3505]: Error looking up server: Name or service not known
Sep 17 00:01:32 lena sntp[3505]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:32 lena sntp[3505]: Error looking up server: Name or service not known
Sep 17 00:01:32 lena sntp[3505]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:33 lena sntp[3507]: Started sntp
Sep 17 00:01:33 lena sntp[3507]: Error looking up server: Name or service not known
Sep 17 00:01:33 lena sntp[3507]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:33 lena sntp[3507]: Error looking up server: Name or service not known
Sep 17 00:01:33 lena sntp[3507]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:33 lena sntp[3507]: Error looking up server: Name or service not known
Sep 17 00:01:33 lena sntp[3507]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:33 lena sntp[3507]: Error looking up server: Name or service not known
Sep 17 00:01:33 lena sntp[3507]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:34 lena sntp[3509]: Started sntp
Sep 17 00:01:34 lena sntp[3509]: Error looking up server: Name or service not known
Sep 17 00:01:34 lena sntp[3509]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:34 lena sntp[3509]: Error looking up server: Name or service not known
Sep 17 00:01:34 lena sntp[3509]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:34 lena sntp[3509]: Error looking up server: Name or service not known
Sep 17 00:01:34 lena sntp[3509]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:34 lena sntp[3509]: Error looking up server: Name or service not known
Sep 17 00:01:34 lena sntp[3509]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:35 lena sntp[3511]: Started sntp
Sep 17 00:01:35 lena sntp[3511]: Error looking up server: Name or service not known
Sep 17 00:01:35 lena sntp[3511]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:35 lena sntp[3511]: Error looking up server: Name or service not known
Sep 17 00:01:35 lena sntp[3511]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:35 lena sntp[3511]: Error looking up server: Name or service not known
Sep 17 00:01:35 lena sntp[3511]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:35 lena sntp[3511]: Error looking up server: Name or service not known
Sep 17 00:01:35 lena sntp[3511]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:36 lena sntp[3513]: Started sntp
Sep 17 00:01:36 lena sntp[3513]: Error looking up server: Name or service not known
Sep 17 00:01:36 lena sntp[3513]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:36 lena sntp[3513]: Error looking up server: Name or service not known
Sep 17 00:01:36 lena sntp[3513]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:36 lena sntp[3513]: Error looking up server: Name or service not known
Sep 17 00:01:36 lena sntp[3513]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:36 lena sntp[3513]: Error looking up server: Name or service not known
Sep 17 00:01:36 lena sntp[3513]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:37 lena sntp[3515]: Started sntp
Sep 17 00:01:37 lena sntp[3515]: Error looking up server: Name or service not known
Sep 17 00:01:37 lena sntp[3515]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:37 lena sntp[3515]: Error looking up server: Name or service not known
Sep 17 00:01:37 lena sntp[3515]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:37 lena sntp[3515]: Error looking up server: Name or service not known
Sep 17 00:01:37 lena sntp[3515]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:37 lena sntp[3515]: Error looking up server: Name or service not known
Sep 17 00:01:37 lena sntp[3515]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:38 lena sntp[3517]: Started sntp
Sep 17 00:01:38 lena sntp[3517]: Error looking up server: Name or service not known
Sep 17 00:01:38 lena sntp[3517]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:38 lena sntp[3517]: Error looking up server: Name or service not known
Sep 17 00:01:38 lena sntp[3517]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:38 lena sntp[3517]: Error looking up server: Name or service not known
Sep 17 00:01:38 lena sntp[3517]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:38 lena sntp[3517]: Error looking up server: Name or service not known
Sep 17 00:01:38 lena sntp[3517]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:39 lena sntp[3519]: Started sntp
Sep 17 00:01:39 lena sntp[3519]: Error looking up server: Name or service not known
Sep 17 00:01:39 lena sntp[3519]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:39 lena sntp[3519]: Error looking up server: Name or service not known
Sep 17 00:01:39 lena sntp[3519]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:39 lena sntp[3519]: Error looking up server: Name or service not known
Sep 17 00:01:39 lena sntp[3519]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:39 lena sntp[3519]: Error looking up server: Name or service not known
Sep 17 00:01:39 lena sntp[3519]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:40 lena sntp[3521]: Started sntp
Sep 17 00:01:40 lena sntp[3521]: Error looking up server: Name or service not known
Sep 17 00:01:40 lena sntp[3521]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:40 lena sntp[3521]: Error looking up server: Name or service not known
Sep 17 00:01:40 lena sntp[3521]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:40 lena sntp[3521]: Error looking up server: Name or service not known
Sep 17 00:01:40 lena sntp[3521]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:40 lena sntp[3521]: Error looking up server: Name or service not known
Sep 17 00:01:40 lena sntp[3521]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:41 lena sntp[3523]: Started sntp
Sep 17 00:01:41 lena sntp[3523]: Error looking up server: Name or service not known
Sep 17 00:01:41 lena sntp[3523]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:41 lena sntp[3523]: Error looking up server: Name or service not known
Sep 17 00:01:41 lena sntp[3523]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:41 lena sntp[3523]: Error looking up server: Name or service not known
Sep 17 00:01:41 lena sntp[3523]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:41 lena sntp[3523]: Error looking up server: Name or service not known
Sep 17 00:01:41 lena sntp[3523]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:42 lena sntp[3525]: Started sntp
Sep 17 00:01:42 lena sntp[3525]: Error looking up server: Name or service not known
Sep 17 00:01:42 lena sntp[3525]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:42 lena sntp[3525]: Error looking up server: Name or service not known
Sep 17 00:01:42 lena sntp[3525]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:42 lena sntp[3525]: Error looking up server: Name or service not known
Sep 17 00:01:42 lena sntp[3525]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:42 lena sntp[3525]: Error looking up server: Name or service not known
Sep 17 00:01:42 lena sntp[3525]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:43 lena sntp[3527]: Started sntp
Sep 17 00:01:43 lena sntp[3527]: Error looking up server: Name or service not known
Sep 17 00:01:43 lena sntp[3527]: Error looking up 0.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:43 lena sntp[3527]: Error looking up server: Name or service not known
Sep 17 00:01:43 lena sntp[3527]: Error looking up 1.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:43 lena sntp[3527]: Error looking up server: Name or service not known
Sep 17 00:01:43 lena sntp[3527]: Error looking up 2.oceania.pool.ntp.org: Name or service not known
Sep 17 00:01:43 lena sntp[3527]: Error looking up server: Name or service not known
Sep 17 00:01:43 lena sntp[3527]: Error looking up 3.oceania.pool.ntp.org: Name or service not known
..
Sep 17 00:01:44 lena init: Entering runlevel: 3
Sep 17 00:01:44 lena rc[3610]: WARNING: clock skew detected!
..
Sep 17 00:01:47 lena ntpd[3862]: ntpd 4.2.6p3@1.2290-o Mon Apr 20 14:34:20 UTC 2015 (1)
Sep 17 00:01:47 lena ntpd[3863]: proto: precision = 1.746 usec
Sep 17 00:01:47 lena ntpd[3863]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Sep 17 00:01:47 lena ntpd[3863]: Listen and drop on 1 v6wildcard :: UDP 123
Sep 17 00:01:47 lena ntpd[3863]: Listen normally on 2 lo 127.0.0.1 UDP 123
Sep 17 00:01:47 lena ntpd[3863]: Listen normally on 3 lo ::1 UDP 123
Sep 17 00:01:47 lena ntpd[3863]: peers refreshed
Sep 17 00:01:47 lena ntpd[3863]: Deferring DNS for 0.oceania.pool.ntp.org 1
Sep 17 00:01:47 lena ntpd[3863]: Deferring DNS for 1.oceania.pool.ntp.org 1
Sep 17 00:01:47 lena ntpd[3863]: Deferring DNS for 2.oceania.pool.ntp.org 1
Sep 17 00:01:47 lena ntpd[3863]: Deferring DNS for 3.oceania.pool.ntp.org 1
..
Sep 17 00:01:49 lena ntpd_intres[3867]: host name not found: 0.oceania.pool.ntp.org
Sep 17 00:01:49 lena ntpd_intres[3867]: host name not found: 1.oceania.pool.ntp.org
Sep 17 00:01:49 lena ntpd_intres[3867]: host name not found: 2.oceania.pool.ntp.org
Sep 17 00:01:49 lena ntpd_intres[3867]: host name not found: 3.oceania.pool.ntp.org
..
Sep 17 00:01:50 lena connmand[4059]: Adding interface eth0 [ ethernet ]
..
Sep 17 00:01:50 lena connmand[4059]: Adding interface wlan0 [ wifi ]
..
Sep 17 00:02:03 lena sntp[4227]: Started sntp
Sep 17 00:02:03 lena sntp[4227]: Error looking up server: Name or service not known
Sep 17 00:02:03 lena last message repeated 3 times
May 20 05:52:24 lena ntpd_intres[3867]: DNS 0.oceania.pool.ntp.org -> 203.122.222.157
May 20 05:52:24 lena ntpd_intres[3867]: DNS 1.oceania.pool.ntp.org -> 27.124.125.250
May 20 05:52:24 lena ntpd_intres[3867]: DNS 2.oceania.pool.ntp.org -> 139.99.194.24
May 20 05:52:24 lena ntpd_intres[3867]: DNS 3.oceania.pool.ntp.org -> 202.22.158.30
May 20 05:52:25 lena ntpd[3863]: Listen normally on 4 eth0 172.20.11.9 UDP 123
May 20 05:52:25 lena ntpd[3863]: Listen normally on 5 eth0 fe80::213:95ff:fe07:1c95 UDP 123
May 20 05:52:25 lena ntpd[3863]: peers refreshed
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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