Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2014 22:35:59 -0500
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: Changing timezone without reboot/restarting each service?
Message-ID:  <5461841F.9080208@freebsd.org>
In-Reply-To: <1415676518.1517572.189478341.09FB6AE5@webmail.messagingengine.com>
References:  <5460B143.3010004@FreeBSD.org> <1415676518.1517572.189478341.09FB6AE5@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--EoFJhFJDLWWXl4skcmTOdAQsSWrvckRf9
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 2014-11-10 22:28, Mark Felder wrote:
>=20
>=20
> 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 :(
>>
>=20
> 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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o=
rg"
>=20

jkh@ 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.

--=20
Allan Jude


--EoFJhFJDLWWXl4skcmTOdAQsSWrvckRf9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJUYYQiAAoJEJrBFpNRJZKfGKkP/1aBmx80UIih97GJVWLzmBUa
KM6aAPOXQDxsPjyLZEKNGV22DmAHcNSAMEA5JE0o08cehq2vm4Hk/20Z8IlNwipy
pWlg/1B1HGGvsmLq8LlsE8YuMby0nOlxCY3wDo0PiMsr9SnIUYJtV7Uf+e0bhJk4
bzYLsTV012MAQBl3/W7CIbxR6BApDokLoLyf5+Fj40Ugeuli8tUolwb+BqqhUpFa
v5nTtzqx/GT476NZA6m1ykJ2VemH1ugxV/mXZrPhz9W+XZT3x99IF8iG3a7eZISc
6q48SHQgWjqtgNQ5E9TtukXYqfwXbjz50eVxUenP3PMD/FrxRqG6posLvfQlxtT0
TU/iZm3G5IovQpPN8cnohQg1g3dF7h3D5EVqHFQojRqkZ1BYRtqvxNIN0yZF7Bor
eHiISy/KiC6bbvBLkMBjHBxYZONVvOs+fglQ9rz+h8uM/DFNzolULoFouuw11uLI
wLwHAxU7m0o/v4BBNCfQ4XtUzSNcLUmsuThG6QBSMMdkfIKmKL9tQuDO4x8rsFCZ
kMDq3I9Ks0s8yW22KKa9Y5B8fxG+OLizRJDpxEOkU6STZTK1XSeVdZ2GDFKEd6Mn
d5ftj4TmHMWvWpI+2nq4TSiir+oZu6uyvYLFL3tK0zH/Wnjf8PFBx31sadQuV80w
eF2QeqSeQ8elWjtqJ0JL
=hxni
-----END PGP SIGNATURE-----

--EoFJhFJDLWWXl4skcmTOdAQsSWrvckRf9--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5461841F.9080208>