From d6d7ed035c4f4a1f8e968e70726050c9fa4553e4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 19 Jan 2017 14:37:14 -0500 Subject: Add a README. --- README | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..1a6ff66 --- /dev/null +++ b/README @@ -0,0 +1,18 @@ +Proper time-sync.target support for systemd-timesyncd + +This package essentially just works around + https://github.com/systemd/systemd/issues/5097 + +systemd.special(7) tells us that "All services where correct time is +essential should be ordered after [time-sync.target]". However, +systemd-timesyncd allows time-sync.target to be reached before +timesyncd has actually synchronized the time. This is because it +sends READY=1 as soon as the daemon has initialized, rather that +waiting until it has successfully synchronized to an NTP server. + +It would be trivial to patch timesyncd to wait, but that would +introduce some other problems. + +So, I'm introducing systemd-timesyncd-wait. It is a service that +listens for messages from systemd-timesyncd, and block until it sees a +message indicating that systemd-timesyncd has synchronized the time. -- cgit v1.2.3