Debian bug report logs - #944
clock (-u) question

Package: sysvinit; Reported by: "James A. Robinson" <jimr@simons-rock.edu>; 148 days old.

Message received at debian-bugs:


From simons-rock.edu!jimr Mon Jun  5 08:32:40 1995
Return-Path: <jimr@simons-rock.edu>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0sIe8u-0006H0C; Mon, 5 Jun 95 08:32 PDT
Received: from plato.simons-rock.edu by pixar.com with SMTP id AA00315
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Mon, 5 Jun 1995 08:31:08 -0700
Received: from simons-rock.edu by plato.simons-rock.edu with smtp
	(Smail3.1.29.1 #3) id m0sIe8G-000017C; Mon, 5 Jun 95 11:32 EDT
Message-Id: <m0sIe8G-000017C@plato.simons-rock.edu>
To: jwl@atlanta.cray.com (James W. Lynch)
Cc: Debian User <debian-user@pixar.com>, Debian Bugs <debian-bugs@pixar.com>
Subject: Re: clock (-u) question 
In-Reply-To: Message from jwl@atlanta.cray.com (James W. Lynch) 
   of "Mon, 05 Jun 1995 10:39:57 +0500." <9506051439.AA00372@dogwood.cray.com> 
Date: Mon, 05 Jun 1995 11:32:00 -0400
From: "James A. Robinson" <jimr@simons-rock.edu>


Package: sysvinit
Version: 2.56

> How is clock supposed to work?  It seems like it might read the
> CMOS clock and set the Unix time to some number.  If so it has to
> know what local time is (offset from GMT) if you leave off the
> -u maybe?  I tried to set TZ earlier in the boot script, but that
> didn't affect it either.


I'm also having a problem with clock. I *believe* it is because the
init.d/boot file runs clock before it mounts the other file systems,
and I happen to have /usr on a "local" file system.

--- snip ---
	# Set GMT="-u" if your system clock is set to GMT, and GMT=""
	# if not.
	GMT=""
	# Set and adjust the CMOS clock.
	clock -s $GMT
	if [ ! -f /etc/adjtime ]
	then
	  echo "0.0 0 0.0" > /etc/adjtime
	fi
	clock -a $GMT
 
	# Mount local file systems in /etc/fstab.
	echo "Mounting local file systems..."
	mount -avt nonfs
--- snip ---


Jim

Acknowledgement sent to "James A. Robinson" <jimr@simons-rock.edu>:
New bug report received and forwarded. Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#944; Package sysvinit. Full text available.
Ian Jackson / iwj10@thor.cam.ac.uk, with the debian-bugs tracking mechanism
This page last modified 07:43:01 GMT Wed 01 Nov