-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2013-09-01 at 14:43 +0200, Dr. Werner Fink wrote:
On Sun, Sep 01, 2013 at 02:00:18PM +0200, Carlos E. R. wrote:
...
This is documented.
Exactly ... and hwclock always uses the third line if not specified the option --noadjfile ... and hwclock only adjusts the Hardware Clock with the option --adjust which should be used before doing --hctosys.
As you may see from the manual page of hwclock(8) this tool is now part of the util-linux project and it has changed. E.g. the option --systz has become part of hwclock(8) which does the same as my old warpclock utility.
Ah, this is new. ...
Nevertheless ... hwclock(8) is not used by systemd as systemd does this by its self and for this it uses /etc/adjtime to get LOCAL(time)/UTC correct:
Ah!
/home/werner> grep /etc/adjtime /etc/systemd/ /usr/lib/systemd/ -rs Binary file /usr/lib/systemd/systemd matches Binary file /usr/lib/systemd/systemd-timedated matches
to use the adjust functionality of hwclock(8) you may create a systemd unit file like hwclock-adjust.service which should be type oneshot and does use
ExecStart=/usr/sbin/hwclock --adjust ExecStart=/usr/sbin/hwclock --hwclock
and at shutdown you may need a second unit hwclock-systohc.service also of type oneshot with
ExecStart=/usr/sbin/hwclock --systohc
Mmmm... more systemd takeovers. Then the "/etc/sysconfig/clock" file in my computer is wrong: ## Description: Correct systematic drift of the HW clock ## Type: list(yes,no,) # # Add or subtract time from the Hardware Clock to account for # systematic drift since the last time the clock was set or # adjusted. By default off as this can cause trouble. For # systems using localtime for HW clock this will ignored. # USE_ADJUST="no" Setting it to yes would not work. - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlIjeRgACgkQtTMYHG2NR9VOMwCfVvwx/XHp0nw2Gc80T/fJU/2y /IMAoIcY1eICKIsY0c33Ce+L+FwtJUtE =gKfu -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org