Date: Tue, 11 Nov 2014 14:08:33 -0600 From: Mark Felder <feld@FreeBSD.org> To: Dimitry Andric <dim@FreeBSD.org> Cc: freebsd-current@freebsd.org Subject: Re: Changing timezone without reboot/restarting each service? Message-ID: <1415736513.1756131.189800941.79451E0C@webmail.messagingengine.com> In-Reply-To: <2C79EC19-7271-4AC1-B9F8-B2992993823A@FreeBSD.org> References: <5460B143.3010004@FreeBSD.org> <1415676518.1517572.189478341.09FB6AE5@webmail.messagingengine.com> <2C79EC19-7271-4AC1-B9F8-B2992993823A@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 11, 2014, at 13:16, Dimitry Andric wrote: > On 11 Nov 2014, at 04:28, Mark Felder <feld@freebsd.org> wrote: > > > > On Mon, Nov 10, 2014, at 06:36, Lev Serebryakov wrote: > >> > >> After changing timezones in Russia (with replacing /etc/localtime > >> with new file), I found that cron works in "old" timezone till > >> restart. And all other services do the same, but cron is most obvious > >> here :) > >> > >> Looks like libc reads timezone only once and it could not be chamged > >> for process without restart (which leads to, effectivly, restart of > >> whole server). > >> > >> Is it known problem? I think, it should be fixed somehow. I > >> understand, that re-check timezone file on each time-related call > >> could be expensive, though :( > >> > > > > I think this was one of the crowning achievements of systemd, but I'm > > sure someone can come up with something much more sane than that to > > address this problem. > > Actually, it isn't: > http://www.freedesktop.org/wiki/Software/systemd/timedated/ > > This reads "Note that this service will not inform you about system time > changes. Use timerfd() with CLOCK_REALTIME and TFD_TIMER_CANCEL_ON_SET > for that." > > So it mostly looks like a shared service to provide the graphical time > control panel for GNOME. > Aha, I guess the article I read was as reliable as jamming all that code into PID 1. :-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1415736513.1756131.189800941.79451E0C>