Date: Tue, 11 Nov 2014 13:57:40 -0500 From: John Baldwin <jhb@freebsd.org> To: freebsd-current@freebsd.org, lev@freebsd.org Cc: FreeBSD Current <current@freebsd.org> Subject: Re: Changing timezone without reboot/restarting each service? Message-ID: <201411111357.40061.jhb@freebsd.org> In-Reply-To: <5460B143.6080206@FreeBSD.org> References: <5460B143.6080206@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, November 10, 2014 7:36:19 am 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 :( In practice, timezone changes are very rare, so rechecking the file is quite expensive to do. I think having to restart processes is fine for this. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411111357.40061.jhb>