[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NTP.conf pool vs server



On Thursday 08 June 2017 01:54:41 Teemu Likonen wrote:

> John Hasler [2017-06-07 10:30:54-05] wrote:
> > Remove Ntp and install Chrony.
>
> Or remove both of those and run:
>
>     sudo timedatectl set-ntp true
>
> And that's about it.

And it looks like this may have solved my pi's clock problem. pi's do not 
have a hardware clock, only a software clock.

My router keeps ntp time, and broadcasts it from time to time.  And I'd 
lie to use that broadcast to sync the rest of my home networks machines 
as opposed to haveing nearly a dozen machines querying the internets 
time servers at pool.ntp.net.
I see, after having stopped ntp, and issued the set-ntp true, htop shows 
a couple copies of /lib/systemd/systemd-timesyncd running, clear at the 
bottom of the sorted by cpu listing, and that issueing a timedatectl as 
the user elicits this response:

pi@picncsheldon:/etc $ timedatectl
      Local time: Thu 2017-06-08 03:38:58 EDT
  Universal time: Thu 2017-06-08 07:38:58 UTC
        RTC time: n/a
       Time zone: America/New_York (EDT, -0400)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: yes
 Last DST change: DST began at
                  Sun 2017-03-12 01:59:59 EST
                  Sun 2017-03-12 03:00:00 EDT
 Next DST change: DST ends (the clock jumps one hour backwards) at
                  Sun 2017-11-05 01:59:59 EDT
                  Sun 2017-11-05 01:00:00 EST

Which looks to me to have solved my problem on an armhf/jessie with a 
realtime kernel, which I need to pin as the application cannot run with 
a stock kernel.

I thank you very much.  Works a treat on a pi/jessie install.

But for my wheezy machines, neither ntpd nor chrony has a listen to 
address command that I can find.  Chrony is working but its banging on 
servers all over the planet.  No better or worse than ntp IMNSHO.

Why can't it simply listen to the broadcasts my router is doing? 

Perhaps an even better question is why, when I run chronyc as root, 
everything I try to do except look at the stats, is a 501/denied return.  
Isn't chronyc supposed to be the command and control facility?, but it 
cannot control anything, only show sources and stats.

Thanks for any chrony as client clues shared.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>


Reply to: