From owner-freebsd-stable@FreeBSD.ORG Sun Nov 27 07:34:28 2005 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79BC416A424 for ; Sun, 27 Nov 2005 07:34:28 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail21.syd.optusnet.com.au (mail21.syd.optusnet.com.au [211.29.133.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E0E243D79 for ; Sun, 27 Nov 2005 07:34:14 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail21.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id jAR7YB1Q017733 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 27 Nov 2005 18:34:12 +1100 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id jAR7YBHh029585; Sun, 27 Nov 2005 18:34:11 +1100 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id jAR7YBPC029584; Sun, 27 Nov 2005 18:34:11 +1100 (EST) (envelope-from pjeremy) Date: Sun, 27 Nov 2005 18:34:11 +1100 From: Peter Jeremy To: Brett Glass Message-ID: <20051127073411.GG27757@cirb503493.alcatel.com.au> References: <200511260118.SAA20596@lariat.net> <6.2.5.6.2.20051126150622.0843d3e0@lariat.org> <20051127041452.GE27757@cirb503493.alcatel.com.au> <6.2.5.6.2.20051126222514.085ac738@lariat.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6.2.5.6.2.20051126222514.085ac738@lariat.org> User-Agent: Mutt/1.4.2.1i X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc Cc: stable@freebsd.org Subject: Re: FreeBSD 6.0 cron is running on GMT X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 07:34:28 -0000 On Sat, 2005-Nov-26 22:27:49 -0700, Brett Glass wrote: >I am wondering if I shouldn't just redo everything in the system that >has to do with time zones and time keeping (deleting files and re-creating >them if need be), reboot, and see what happens. That's as good as idea as any other. I know cron on my 6.0 system behaves correctly so I suspect it's something odd on your system. Last suggestions/guesses: - If you run "/sbin/rcorder -s nostart /etc/rc.d/*", does /etc/rc.d/cron come after /etc/rc.d/adjkerntz? - If /etc/localtime is a symlink, is the filesystem it points to mounted when cron starts? (Look thru the rcorder above to check). - Do "at" jobs run at local or UTC time? - If you run "date" and "date -u" as a cron job, what do they report? > I've never seen a good >explanation of all of the sysctl variables, environment variables, files, >etc. that control it, especially since (as I understand it) the responsibility >has been shifted from the kernel to libraries. Is there a summary out there? The timezone has always been the responsibility of userland in FreeBSD. The kernel provides a UTC timestamp to the ctime(3) functions, which are solely responsible to mapping UTC to local time based on $TZ or /etc/localtime. adjkerntz(8) is responsible for handling the RTC's offset between UTC and localtime. If /etc/wall_cmos_clock exists, it means that CMOS clock keeps local time. If that file does not exist, it means that the CMOS clock keeps UTC time. adjkerntz sets machdep.wall_cmos_clock. -- Peter Jeremy