From owner-freebsd-hackers Fri Jun 23 15:44:35 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA29539 for hackers-outgoing; Fri, 23 Jun 1995 15:44:35 -0700 Received: from mpp.com (mpp.Minn.Net [204.157.201.242]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA29532 for ; Fri, 23 Jun 1995 15:44:32 -0700 Received: (from mpp@localhost) by mpp.com (8.6.11/8.6.9) id RAA03294; Fri, 23 Jun 1995 17:44:10 -0500 From: Mike Pritchard Message-Id: <199506232244.RAA03294@mpp.com> Subject: Re: Check the date and time at boot To: rgrimes@gndrsh.aac.dev.com (Rodney W. Grimes) Date: Fri, 23 Jun 1995 17:44:09 -0500 (CDT) Cc: mrcpu@cdsnet.net, hackers@FreeBSD.ORG In-Reply-To: <199506230451.VAA09559@gndrsh.aac.dev.com> from "Rodney W. Grimes" at Jun 22, 95 09:51:26 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1961 Sender: hackers-owner@FreeBSD.ORG Precedence: bulk > > 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"