I'll forward this upstream to see what they think about the intended behavior.

I recommend you do the following:

1. Change your task from cron to a systemd .service / .timer pair. In your .service, have:

[Unit]
Requires=time-sync.target
After=time-sync.target

2. Enable ntpsec-wait.service


ntp-wait.service is ordered After=ntpsec.service and Before=time-sync.target. Since your service will be After=time-sync.target, it will not start until ntp-wait.service has completed.

time-sync.target is a systemd standard thing. This indirection allows other services to express that they want the time synchronized without having to know which implementation is in use.

--
Richard

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to