[nos-bbs] Where has the time gone?

jerome schatten romers at shaw.ca
Sat Jul 15 18:43:19 EDT 2017


Tom

OK below is the tests I did.  Essentially I got the status (running); then stopped the service; and the restarted it.  Then I left it running and ran tcpdump on port 123, and there was nothing. So no client/server interchanges at all.

———————————————cut here-------------------------------
pi at raspberrypi:~ $ 
pi at raspberrypi:~ $ 
pi at raspberrypi:~ $ systemctl status ntp.service -l
● ntp.service - LSB: Start NTP daemon
   Loaded: loaded (/etc/init.d/ntp)
   Active: active (running) since Fri 2017-07-14 15:03:03 PDT; 23h ago
  Process: 500 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/ntp.service
           ├─543 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 106:111
           └─549 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 106:111
pi at raspberrypi:~ $ sudo sytemctl stop ntp.service
pi at raspberrypi:~ $ sudo systemctl stop ntp.service
pi at raspberrypi:~ $ 
pi at raspberrypi:~ $ sudo systemctl start ntp.service
pi at raspberrypi:~ $ 
pi at raspberrypi:~ $ systemctl status ntp.service -l
● ntp.service - LSB: Start NTP daemon
   Loaded: loaded (/etc/init.d/ntp)
   Active: active (running) since Sat 2017-07-15 14:39:25 PDT; 42s ago
  Process: 2683 ExecStop=/etc/init.d/ntp stop (code=exited, status=0/SUCCESS)
  Process: 2704 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/ntp.service
           └─2712 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 106:111

—————————————cut here ——————————————————————

So it looks like it’s working.  I reset the time with ‘date’ and brought the machine down and left it for several minutes. Brought the machine back up and I had lost ten minutes.  Looking at tcpdump port 123, I saw no packets at all. 

On the pi that’s working OK (the bpq pi), monitoring port 123, I see a transaction betwee client and server periodically as expected.

That’s the story
j.









> On Jul 15, 2017, at 14:28, jerome schatten <romers at shaw.ca> wrote:
> 
> Let me backtrack a moment… 
> 
> I am able to initially change the time with the ‘date’, but now I see it drops the ten minutes again sometime later. So the answer to your initial question Tom is no, I can’t successfully reset the time with the ‘date’ command.
> 
> I will look at systemctl as outlined below
> j.
> 




More information about the nos-bbs mailing list