From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 28 18:45:19 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C09E106564A; Mon, 28 Mar 2011 18:45:19 +0000 (UTC) (envelope-from max@mxcrypt.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1DE968FC19; Mon, 28 Mar 2011 18:45:18 +0000 (UTC) Received: by gxk28 with SMTP id 28so1466285gxk.13 for ; Mon, 28 Mar 2011 11:45:18 -0700 (PDT) Received: by 10.236.185.135 with SMTP id u7mr5681972yhm.232.1301336551216; Mon, 28 Mar 2011 11:22:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.146.209.3 with HTTP; Mon, 28 Mar 2011 11:22:01 -0700 (PDT) In-Reply-To: References: <8CDBB88B5271976-11D4-322B@web-mmc-d02.sysops.aol.com> From: Maxim Khitrov Date: Mon, 28 Mar 2011 14:22:01 -0400 Message-ID: To: Garrett Cooper Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org, dieterbsd@engineer.com, Doug Barton Subject: Re: Keeping /etc/localtime up-to-date X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2011 18:45:19 -0000 On Mon, Mar 28, 2011 at 2:10 PM, Garrett Cooper wrote= : > On Mon, Mar 28, 2011 at 10:57 AM, =C2=A0 wrote: >>> And while I (think I) recall that the equivalent of /etc/localtime >>> was implemented in some version of SunOS many years ago as a symlink, >>> I believe that approach could be problematic for FreeBSD, as it >>> could impose some unintended requirements on some of the start-up >>> scripts. >> >> I have been running FreeBSD and NetBSD with /etc/localtime being >> a symlink for years and have not seen any problems as a result. > > +1. Many Linux distros do the same thing as well (Gentoo is just one exam= ple). > Thanks, > -Garrett Same here, though I'd be happy to change this habit if mergemaster handled the updates for me. If you do end up using /var/db/zoneinfo in mergemaster, keep two things in = mind: 1. /var/db/zoneinfo may not exist because tzsetup was never used (/etc/localtime may or may not exist). 2. /etc/localtime may be a symlink to /usr/share/zoneinfo/... In the first case, you would need to ask the user which zoneinfo file to use, or just run tzsetup for them. In the second case, you should confirm that the user wants to replace the symlink with a copy. In both cases, verify that /var/db/zoneinfo reflects current configuration (create it, if necessary). - Max