systemd-timesyncd-wait

command module
v0.0.0-...-02e7dfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README


The functionality provided on this repo was finally implemented on Systemd with "systemd-time-wait-sync"

https://github.com/systemd/systemd/issues/5097


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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL