[systemd-devel] alternative approach to waiting for system time to be set
Lennart Poettering
lennart at poettering.net
Mon Mar 19 21:17:49 UTC 2018
On So, 18.03.18 20:45, Peter A. Bigot (pab at pabigot.com) wrote:
> Like others I'd like to use systemd to defer starting a service until the
> system time has been set accurately. Previous approaches to resolving issue
> #5097 don't seem to be going anywhere.
>
> https://github.com/pabigot/timesyncwait has my proposed solution: a
> standalone service that blocks until adjtimex(2) confirms that something has
> told the kernel its realtime clock is synchronized. It also provides a new
> time-synchronized.target so it can be installed alongside an unmodified
> timesyncd.
>
> Initial tests show this meets my needs. I'd be willing to rework it as a
> patch to systemd if there's consensus the approach is reasonable.
Yeah, I figure this makes sense to have. But it would need some
updates to match what our CODING_STYLE docs suggest (starting with 8ch
indenting).
Would be great if you could rework it accordingly and submit it as PR.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list