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.servicentp-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
OpenPGP_signature.asc
Description: OpenPGP digital signature

