Bug 90085

Summary: DOC: timesyncd: documentation about /var/lib/systemd/clock is incomplete
Product: systemd Reporter: Florian E. <norrepli>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
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.