From owner-freebsd-current@FreeBSD.ORG Tue Nov 11 19:16:56 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 051E8C54; Tue, 11 Nov 2014 19:16:56 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B5811E9B; Tue, 11 Nov 2014 19:16:55 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::11d7:aebc:8d98:3fd1] (unknown [IPv6:2001:7b8:3a7:0:11d7:aebc:8d98:3fd1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 33C7FB80A; Tue, 11 Nov 2014 20:16:52 +0100 (CET) Subject: Re: Changing timezone without reboot/restarting each service? Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Content-Type: multipart/signed; boundary="Apple-Mail=_44FEAC56-EED7-44A1-B485-057EA3DB1CB7"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b1 From: Dimitry Andric In-Reply-To: <1415676518.1517572.189478341.09FB6AE5@webmail.messagingengine.com> Date: Tue, 11 Nov 2014 20:16:37 +0100 Message-Id: <2C79EC19-7271-4AC1-B9F8-B2992993823A@FreeBSD.org> References: <5460B143.3010004@FreeBSD.org> <1415676518.1517572.189478341.09FB6AE5@webmail.messagingengine.com> To: Mark Felder X-Mailer: Apple Mail (2.1990.1) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2014 19:16:56 -0000 --Apple-Mail=_44FEAC56-EED7-44A1-B485-057EA3DB1CB7 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 11 Nov 2014, at 04: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. 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. -Dimitry --Apple-Mail=_44FEAC56-EED7-44A1-B485-057EA3DB1CB7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlRiYKMACgkQsF6jCi4glqMfGQCfX1DsPyWQxtwMQz9moT7zefZf lEcAoP3rEsSlVX6eGRBv4ywr74QLrnWW =w58R -----END PGP SIGNATURE----- --Apple-Mail=_44FEAC56-EED7-44A1-B485-057EA3DB1CB7--