summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-19 14:37:14 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-19 14:37:14 -0500
commitd6d7ed035c4f4a1f8e968e70726050c9fa4553e4 (patch)
treef3208a82b1a14c766a2dcdc148a65ee7d31827e4
parent75e2077eed9c4ac72611e10ce304df7cb7435c0e (diff)
Add a README.
-rw-r--r--README18
1 files changed, 18 insertions, 0 deletions
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.