summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-08-16 22:38:24 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-08-16 22:38:24 -0400
commit00ac51dfdbf39d80634d2d200151306ca9a8b8dc (patch)
tree22fb5c46aa70af6b651f84eaae305a4cb8d446eb /README.md
parent5387ed9425659508f2cd26a46e571a11295e70f5 (diff)
parenta1c6d47f7d7b1278374a550aade838967ab925ff (diff)
Merge branch 'master' into lukeshu
Diffstat (limited to 'README.md')
-rw-r--r--README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..ebb4993
--- /dev/null
+++ b/README.md
@@ -0,0 +1,30 @@
+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.
+
+### Requirements
+
+ go > 1.4
+ make
+
+
+### Installation
+
+Clone the repo and execute:
+
+ make && make install