Keeping /etc/localtime up-to-date

Ed Maste emaste at
Mon Mar 28 01:49:20 UTC 2011

On Sun, Mar 27, 2011 at 03:27:32PM -0700, David Wolfskill wrote:

> There are other ways to do it, of course -- e.g., the first time the
> utility is run, it could actually ask, but then cache the information in
> some place so it could look there first (and if it finds a cached
> answer, avoid asking again unless it's told to ignore the cache -- as
> might be reasonable if the machine is moved to a different time zone.

That's what tzsetup does in HEAD - the name of the selected timezone file
is stored in /var/db/zoneinfo, and tzsetup -r can be used to copy in an
updated file:

  -r  Reinstall the zoneinfo file installed last time. The
      name is obtained from /var/db/zoneinfo.

It looks like this hasn't been MFC'd, although I'm not sure why.  The
change came in from svn rev 198267 by edwin (CC'd).


More information about the freebsd-hackers mailing list