Startup time on Raspberry Pi

Clark B. Wierda cbwierda at gmail.com
Tue Apr 18 17:36:02 UTC 2017


On Tue, Apr 18, 2017 at 1:14 PM, Hal Murray <hmurray at megapathdsl.net> wrote:

>
> >> I just rebooted a Raspberry Pi.  Somebody is setting the
> >> system time.  I don't know who/where.
>
> > I do.  There's a special hack to save the time at shutdown and restore
> it at
> > startup.  The assumption is that that sort of reboot happens fast enough
> so
> > that the restored time is not too horrible for syslogging.
>
> From the log file:
> 18 Apr 01:12:08 ntpd[434]: 0.0.0.0 c41c 0c clock_step +6.249811 s
>
> That seems consistent with your description.
>
> I'm curious.  I'd like to look at the code.  Do you know where it is
> located?
>  Name of program or similar?  ...
>

I believe Raspberry Pi uses fake-hwclock to keep time advancing.

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.

There is another script that reads the file on boot.

Clark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170418/a1e2bf21/attachment.html>


More information about the devel mailing list