alternative approach to waiting for system time to be set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux