<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 18, 2017 at 1:14 PM, Hal Murray <span dir="ltr"><<a href="mailto:hmurray@megapathdsl.net" target="_blank">hmurray@megapathdsl.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
>> I just rebooted a Raspberry Pi.  Somebody is setting the<br>
>> system time.  I don't know who/where.<br>
<br>
> I do.  There's a special hack to save the time at shutdown and restore it at<br>
> startup.  The assumption is that that sort of reboot happens fast enough so<br>
> that the restored time is not too horrible for syslogging.<br>
<br>
>From the log file:<br>
18 Apr 01:12:08 ntpd[434]: 0.0.0.0 c41c 0c clock_step +6.249811 s<br>
<br>
That seems consistent with your description.<br>
<br>
I'm curious.  I'd like to look at the code.  Do you know where it is located?<br>
 Name of program or similar?  ...<br>
<span class="gmail-HOEnZb"></span></blockquote><div><br></div><div>I believe Raspberry Pi uses fake-hwclock to keep time advancing.<br><br></div><div>My understanding (not at home to check directly) is that there is a cron entry to save time hourly and script to save on shutdown.<br><br></div><div>There is another script that reads the file on boot.<br><br></div><div>Clark<br></div></div></div></div>