Bug 90085 - DOC: timesyncd: documentation about /var/lib/systemd/clock is incomplete
Summary: DOC: timesyncd: documentation about /var/lib/systemd/clock is incomplete
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
Depends on:
Reported: 2015-04-18 08:44 UTC by Florian E.
Modified: 2019-08-22 11:09 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Florian E. 2015-04-18 08:44:09 UTC
The documentation at http://www.freedesktop.org/software/systemd/man/systemd-timesyncd.service.html says:

> /var/lib/systemd/clock
>   This file contains the timestamp of last successful synchronization.

However, that file is created even if systemd-timesyncd couldn't connect to a server. See src/timesync/timesyncd.c, lines 63-64:

> /* create stamp file with the compiled-in date */
> touch_file("/var/lib/systemd/clock", true, min, uid, gid, 0644);

I wouldn't call creating a file with the timestamp of the systemd build a "successful synchronization".
Comment 1 Zbigniew Jedrzejewski-Szmek 2019-08-22 11:09:09 UTC
Fixed in https://github.com/systemd/systemd/commit/74712c9ed9.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.