Date: Mon, 28 Mar 2011 14:22:01 -0400 From: Maxim Khitrov <max@mxcrypt.com> To: Garrett Cooper <gcooper@freebsd.org> Cc: hackers@freebsd.org, dieterbsd@engineer.com, Doug Barton <dougb@freebsd.org> Subject: Re: Keeping /etc/localtime up-to-date Message-ID: <AANLkTimhCgzyhWNt8Z_tBRzYTQA1T0vTP6Jo_BTVg2m6@mail.gmail.com> In-Reply-To: <AANLkTim3Axh4FV8oCJSoBYHJEq4=XkhfNjPAxkH9sV-2@mail.gmail.com> References: <8CDBB88B5271976-11D4-322B@web-mmc-d02.sysops.aol.com> <AANLkTim3Axh4FV8oCJSoBYHJEq4=XkhfNjPAxkH9sV-2@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 28, 2011 at 2:10 PM, Garrett Cooper <gcooper@freebsd.org> wrote= : > On Mon, Mar 28, 2011 at 10:57 AM, =C2=A0<dieterbsd@engineer.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimhCgzyhWNt8Z_tBRzYTQA1T0vTP6Jo_BTVg2m6>