Maybe start a github pull-request ? things seems to be less forgotten that way.

since your code already exist, creating a first PR should not be too much work...

On 19/03/2018 02:45, Peter A. Bigot 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.

Peter

Mar 15 17:14:17 raspberrypi3 systemd[1]: Starting Wait Until Kernel Time Synchronized... Mar 15 17:14:17 raspberrypi3 timesyncwait[107]: adjtime state 5 status 40 time 1521134057.408590 Mar 19 01:04:35 raspberrypi3 timesyncwait[107]: adjtime state 0 status 2000 time 1521421475.316852 Mar 19 01:04:35 raspberrypi3 systemd[1]: Started Wait Until Kernel Time Synchronized.

References:
* https://github.com/systemd/systemd/issues/5097
* https://github.com/LukeShu/systemd-timesyncd-wait
* https://lists.freedesktop.org/archives/systemd-devel/2014-November/025131.html * https://lists.freedesktop.org/archives/systemd-devel/2017-May/038952.html


_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

--
SMILE <http://www.smile.eu/>

20 rue des Jardins
92600 Asnières-sur-Seine

        
*Jérémy ROSEN*
Architecte technique
Responsable de l'expertise Smile-ECS

email jeremy.ro...@smile.fr <mailto:jeremy.ro...@smile.fr>
phone +33141402967
url http://www.smile.eu

Twitter <https://twitter.com/GroupeSmile> Facebook <https://www.facebook.com/smileopensource> LinkedIn <https://www.linkedin.com/company/smile> Github <https://github.com/Smile-SA>


Découvrez l’univers Smile, rendez-vous sur smile.eu <http://smile.eu/?utm_source=signature&utm_medium=email&utm_campaign=signature>

eco Pour la planète, n'imprimez ce mail que si c'est nécessaire
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to