Bug 90085 - DOC: timesyncd: documentation about /var/lib/systemd/clock is incomplete
Summary: DOC: timesyncd: documentation about /var/lib/systemd/clock is incomplete
Status: NEW
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-18 08:44 UTC by Florian E.
Modified: 2015-04-20 14:28 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".


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.