Re: Changing timezone without reboot/restarting each service?

From: Allan Jude <allanjude_at_freebsd.org>
Date: Mon, 10 Nov 2014 22:35:59 -0500
On 2014-11-10 22:28, Mark Felder 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.
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 

jkh_at_ mentioned this specifically when he gave his talk at EuroBSDCon and
MeetBSD, about how Apple solved this in LaunchD, because apparently
originally libc DID check /etc/localtime constantly.

-- 
Allan Jude


Received on Tue Nov 11 2014 - 02:36:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:53 UTC