Re: Fixing DST manually on rel4 & rel5

2007-03-16 Thread Chuck Swiger

On Mar 16, 2007, at 12:56 AM, Ted Mittelstaedt wrote:

The use of "ln -s" will work just fine as written.  I don't know why
tzsetup makes a copy of the zoneinfo file rather than setting up a
symlink, but making a copy simply allows the file in /etc to become
out-of-sync if one updates the files under /usr/share{/lib}/zoneinfo
without re-running tzsetup again.


Maybe they want the timezone to be correct if you boot into
single user mode and don't mount /usr?


*shrug*-- maybe, but if you don't mount /usr, the system isn't  
capable of running much which cares about the timezone.  Even syslogd  
itself is under /usr/sbin


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Fixing DST manually on rel4 & rel5

2007-03-15 Thread Ted Mittelstaedt

- Original Message - 
From: "Chuck Swiger" <[EMAIL PROTECTED]>
To: "Ted Mittelstaedt" <[EMAIL PROTECTED]>
Cc: "Ken Cochran" <[EMAIL PROTECTED]>; 
Sent: Thursday, March 15, 2007 9:12 AM
Subject: Re: Fixing DST manually on rel4 & rel5


> On Mar 14, 2007, at 10:29 PM, Ted Mittelstaedt wrote:
> > echo "ln -s /usr/share/zoneinfo/PST8PDT /etc/localtime"
> > [ ... ]
> >
> > I think the ln-s line is backwards, I didn't check it.  I think it's
> > been a while since they used softlinks for localtime
> 
> The use of "ln -s" will work just fine as written.  I don't know why  
> tzsetup makes a copy of the zoneinfo file rather than setting up a  
> symlink, but making a copy simply allows the file in /etc to become  
> out-of-sync if one updates the files under /usr/share{/lib}/zoneinfo  
> without re-running tzsetup again.
> 

Maybe they want the timezone to be correct if you boot into
single user mode and don't mount /usr?

Ted
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Fixing DST manually on rel4 & rel5

2007-03-15 Thread Chuck Swiger

On Mar 14, 2007, at 10:29 PM, Ted Mittelstaedt wrote:

echo "ln -s /usr/share/zoneinfo/PST8PDT /etc/localtime"
[ ... ]

I think the ln-s line is backwards, I didn't check it.  I think it's
been a while since they used softlinks for localtime


The use of "ln -s" will work just fine as written.  I don't know why  
tzsetup makes a copy of the zoneinfo file rather than setting up a  
symlink, but making a copy simply allows the file in /etc to become  
out-of-sync if one updates the files under /usr/share{/lib}/zoneinfo  
without re-running tzsetup again.


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Fixing DST manually on rel4 & rel5

2007-03-14 Thread Ted Mittelstaedt
here is my quick hack script to manually do this

#!/bin/sh
zdump -v /etc/localtime | grep 2007
echo  If sun Mar 11 and Nov 1 then OK
echo Otherwise stop script now and rerun from clean temp dir
echo "also ls -l /etc |more and check that localtime is not a link"
sleep 5
fetch ftp://sunrise.ipinc.net/pub/tzdata2007c.tar.gz
tar -xzf tzdata2007c.tar.gz
zic -d zoneinfo northamerica
cp -R zoneinfo/* /usr/share/zoneinfo
zdump -v /usr/share/zoneinfo/PST8PDT | grep 2007
zdump -v /usr/share/zoneinfo/America/Los_Angeles | grep 2007
echo "if localtime is a link then stop and rm /etc/localtime then"
echo "ln -s /usr/share/zoneinfo/PST8PDT /etc/localtime"
sleep 5
cp /usr/share/zoneinfo/PST8PDT /etc/localtime
zdump -v /etc/localtime | grep 2007
echo If Sun Mar 11 and Nov 1 then OK
echo "now rm -r this temp dir"
$

I think the ln-s line is backwards, I didn't check it.  I think it's
been a while since they used softlinks for localtime

Ted

- Original Message - 
From: "Ken Cochran" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, March 14, 2007 7:01 AM
Subject: Fixing DST manually on rel4 & rel5


> Hello -questions:
>
> This is most certanly a FAQ but I'm not yet finding the kind of
> answer I need...
>
> I have a couple of old FreeBSD systems that I can't (yet) update
> to the new Daylight Saving Time rules (based on the email message
> that came out on -announce in late February).  One is
> 4.10-stable, last updated late November 2004 & the other is
> 5.4-release.  Cvsup brings /usr/src in order but I can't update
> ports (yet) to get misc/zoneinfo and it doesn't look like I can
> just "transfer" the /usr/share/zoneinfo bits over from /usr/src
> without a {build,install}world (also impractical at this time).
>
> Best I can tell from the message that came from -announce sometime
> back, the same fix(es) would apply to both the 4 & 5 branches.
>
> Is there a "proper" way to fix the timezone on these machines
> "manually" pending the "real" change that will happen in the
> system according to the previous rules/schedule?  (e.g. Fix it
> temporarily/manually but not clobber the original rules.)
>
> Or is there some way to install the new cvsup'ed zoneinfo bits
> into an "old" system so I can run tzsetup and have everything
> fixed "correctly?"  I'm in US Central timezone and I've seen it
> reported as CST6CDT (I guess that's in SysV).
>
> FAQ/doc/book pointers/references are welcome of course - I'm
> still digging around in both the Handbook & Complete FreeBSD
> and wherever else I can find...
>
> Many thanks,
>
> -kc
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Fixing DST manually on rel4 & rel5

2007-03-14 Thread Lowell Gilbert
Ken Cochran <[EMAIL PROTECTED]> writes:

> Hello -questions:
>
> This is most certanly a FAQ but I'm not yet finding the kind of
> answer I need...
>
> I have a couple of old FreeBSD systems that I can't (yet) update
> to the new Daylight Saving Time rules (based on the email message
> that came out on -announce in late February).  One is
> 4.10-stable, last updated late November 2004 & the other is
> 5.4-release.  Cvsup brings /usr/src in order but I can't update
> ports (yet) to get misc/zoneinfo and it doesn't look like I can
> just "transfer" the /usr/share/zoneinfo bits over from /usr/src
> without a {build,install}world (also impractical at this time).
>
> Best I can tell from the message that came from -announce sometime
> back, the same fix(es) would apply to both the 4 & 5 branches.
>
> Is there a "proper" way to fix the timezone on these machines
> "manually" pending the "real" change that will happen in the
> system according to the previous rules/schedule?  (e.g. Fix it
> temporarily/manually but not clobber the original rules.)
>
> Or is there some way to install the new cvsup'ed zoneinfo bits
> into an "old" system so I can run tzsetup and have everything
> fixed "correctly?"  I'm in US Central timezone and I've seen it
> reported as CST6CDT (I guess that's in SysV).
>
> FAQ/doc/book pointers/references are welcome of course - I'm
> still digging around in both the Handbook & Complete FreeBSD
> and wherever else I can find...

Copying the zoneinfo files (and running tzsetup) should work fine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"