Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jun 1995 17:44:09 -0500 (CDT)
From:      Mike Pritchard <mpp@legarto.minn.net>
To:        rgrimes@gndrsh.aac.dev.com (Rodney W. Grimes)
Cc:        mrcpu@cdsnet.net, hackers@FreeBSD.ORG
Subject:   Re: Check the date and time at boot
Message-ID:  <199506232244.RAA03294@mpp.com>
In-Reply-To: <199506230451.VAA09559@gndrsh.aac.dev.com> from "Rodney W. Grimes" at Jun 22, 95 09:51:26 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > On Thu, 22 Jun 1995, Rodney W. Grimes wrote:
> > 
> > > > Is there any interest in some /etc/rc changes (along with a small
> > > > helper program) to check if the system date and time may be
> > > The more correct way to fix this is to use either ntpdate or timed
> > > at boot time.  Both are already supported by /etc/rc and /etc/sysconfig,
> > > I don't think we need yet a third way to get the date right during boot.
> > 
> > 
> > The flaw here is that not everybody is connected to the internet to run a 
> > clock-checker program...
> 
> And these are the same types of people who are likely to turn there
> machines off for more than a few hours, causing this little utility to
> falsely trigger ever time they boot.
> 
> No thanks, I don't want to answer all those newbie silly bug reports :-)
> 
> But I suppose since it would have an /etc/sysconfig knob, with the
> default state to be off, if it where to be implemented the way that
> Sun or HP/Apollo did it and use the superblock time stamp instead of
> some cron job I would be willing to bring it in.
> -- 
> Rod Grimes                                      rgrimes@gndrsh.aac.dev.com

It only starts complaining if the date is off by more than 24
hours, and that is also settable, so if someone only turns their
machine on once a week, they can select a larger value via sysconfig.
I already had a knob in sysconfig to turn this on/off, so that
isn't a problem.

I now have a version that uses the super-block time stamp,
and I'll bundle everything up and ship it off to you after
doing a little more testing over the weekend just to
make sure everything is right with my new changes.

I would still rather use a data file, since booting to single
user mode never gets to /etc/rc, so you may update the
root file system timestamp before it could ever be detected,
but I'll give in...
-- 
Mike Pritchard
mpp@legarto.minn.net
"Go that way.  Really fast.  If something gets in your way, turn"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506232244.RAA03294>