From owner-freebsd-questions@FreeBSD.ORG Thu Feb 22 17:16:14 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A48C216A405 for ; Thu, 22 Feb 2007 17:16:14 +0000 (UTC) (envelope-from dan@dpcsys.com) Received: from ns.beach.net (ns.beach.net [12.130.64.129]) by mx1.freebsd.org (Postfix) with ESMTP id 7FD4213C4AA for ; Thu, 22 Feb 2007 17:16:14 +0000 (UTC) (envelope-from dan@dpcsys.com) Received: from [192.168.1.228] (busarow.beach.net [69.51.81.91] (may be forged)) by ns.beach.net (8.13.7/8.13.7) with ESMTP id l1MHGDkH012126; Thu, 22 Feb 2007 09:16:13 -0800 (PST) In-Reply-To: <008e01c7569f$41bcf5c0$d5b9bfcf@lisac> References: <185909.4526.qm@web34513.mail.mud.yahoo.com> <008e01c7569f$41bcf5c0$d5b9bfcf@lisac> Mime-Version: 1.0 (Apple Message framework v752.2) X-Priority: 3 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7257044F-8A31-4005-8E3C-BAB8C6C0AB77@dpcsys.com> Content-Transfer-Encoding: 7bit From: Dan Busarow Date: Thu, 22 Feb 2007 10:16:12 -0700 To: Lisa Casey X-Mailer: Apple Mail (2.752.2) Cc: freebsd-questions@freebsd.org Subject: Re: Determining daylight savings changes on BSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2007 17:16:14 -0000 On Feb 22, 2007, at 9:33 AM, Lisa Casey wrote: > Hi, > > I just read through this entire thread and I have a couple of > questions. I have several FreeBSD 5.4 systems. I did the date -r > commands as suggested on one of these systems and it doesn't appear > to switch over to daylight savings time on Sunday March 11 at 2 AM. > > I looked in /usr/ports/misc but there isn't a zoneinfo port (on > this system). I searched a bit and found this: Lisa, If you can't use the ports to update your time zone files here is the manual procedure. 1. create a new directory and cd into it e.g. # mkdir myzoneinfo; cd myzoneinfo 2. # fetch ftp://elsie.nci.nih.gov/pub/tzdata2007b.tar.gz 3. # tar -zxvf tzdata2007b.tar.gz 4. you will now have a bunch of files in the directory extracted from tzdata2007b. you need to edit zone.tab and comment out these lines #AX +6006+01957 Europe/Mariehamn #GG +4927-00232 Europe/Guernsey #IM +5409-00428 Europe/Isle_of_Man #JE +4912-00207 Europe/Jersey #ME +4226+01916 Europe/Podgorica #RS +4450+02030 Europe/Belgrade #TL -0833+12535 Asia/Dili 5. run this command # zic -d ./zoneinfo -p America/Los_Angeles -m 0644 -y ./yearistype \ africa antarctica asia australasia etcetera europe \ factory northamerica southamerica systemv that's all one long line the zic command will create a new directory named zoneinfo and fill it with the new zoneinfo files. You can compare it to /usr/share/zoneinfo 6. install the new files by running # cp -R -p ./zoneinfo/ /usr/share/zoneinfo # cp ./zone.tab /usr/share/zoneinfo # tzsetup 7. to verify that all went well run # zdump -v /etc/localtime | grep 2007 your should get /etc/localtime Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 PST isdst=0 gmtoff=-28800 /etc/localtime Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 PDT isdst=1 gmtoff=-25200 /etc/localtime Sun Nov 4 08:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 PDT isdst=1 gmtoff=-25200 /etc/localtime Sun Nov 4 09:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 PST isdst=0 gmtoff=-28800 I've done this on 1/2 dozen older 4.x and 5.x servers and it works fine. Dan > > radius# find / -name zoneinfo -print > /usr/share/zoneinfo > /usr/compat/linux/usr/share/zoneinfo > radius# find / -name tzsetup -print > /usr/sbin/tzsetup > > Here's my question. tzsetup seems to already be on this system. I > have not used it before, so am unfamiliar with it. Can I just run > that now and make whatever changes are necessary to fix this system > so that it recognises daylight savings changes? Or am I going to > have to download some updated zone files first? In this thread, > someone suggested doing the following: > > cd /usr/src/share/zoneinfo > fetch ftp://elsie.nci.nih.gov/pub/tzdata2007a.tar.gz > tar -zxvf tzdata2007a.tar.gz > make > make install > > cp -f /usr/share/zoneinfo/America/Los_Angeles > /etc/localtime > chmod 444 /etc/localtime > > I have attempted that, but when I unzip/untar tzdata2007b.tar.gz > (there isn't an "a" file there anymore, just the "b" one), I get > several files but there is no target for the make command. > > Are there any special considerations any of you might be aware of > depending on what function my freebsd servers are serving? One does > radius authentication using Free Radius, another is our web server > (Apache2) and primary DNS (Bind 9), a third is a mail server > (Sendmail). > > I'm sorry - I'm just kinda confused as to how I ought to handle > this issue. > > Thanks, > > Lisa Casey