Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Apr 1999 20:24:26 +0100
From:      Nik Clayton <nik@nothing-going-on.demon.co.uk>
To:        Greg Lehey <grog@lemis.com>
Cc:        Nick Sayer <nsayer@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_time.c
Message-ID:  <19990408202426.A58558@catkin.nothing-going-on.org>
In-Reply-To: <19990408100716.I2142@lemis.com>; from Greg Lehey on Thu, Apr 08, 1999 at 10:07:16AM %2B0930
References:  <199904071636.JAA15238@freefall.freebsd.org> <19990408100716.I2142@lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 08, 1999 at 10:07:16AM +0930, Greg Lehey wrote:
> Does this mean that if somebody accidentally sets the time to the
> wrong year, the only thing he can do to fix it is to reboot in
> single-user mode?  I'm not convinced that this is a gain.  What do
> people doing Y2K tests do?

As someone who does do Y2K tests (albeit not on FreeBSD) I'm qualified
to grab this one.  It's done in single user mode, just before the
machine reboots.  Typically, you've got so many other services running
that might be time sensitive (cron/at are the obvious ones, but anything
that does logging is a candidate, databases, and so on).

On Solaris, this is accomplished with a trivial shell script linked in 
to /etc/rc0.d/K999newdate, which just reads in /new-date, and sets the
date and time appropriately.

    # echo 123123501999 > /new-date
    # init 6

works quite nicely.

The sound as 30 E450s, fully laden with disks, shut down almost 
simultaneously is really quite disturbing if you've been conditioned
to *always* hear the noise of the fans in your machine rooms.

N
-- 
                    Bagel: The carbohydrate with the hole


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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