[systemd-devel] How to ensure a systemd unit waits for ntpd to sync before starting?

Reindl Harald h.reindl at thelounge.net
Tue Apr 2 09:33:11 UTC 2019

can you please stop cure replys instead just post to the list breaking
others threading and reply-list buttons?

Am 02.04.19 um 11:25 schrieb Debraj Manna:
> I do see a ntp-wait <goog_627709103>.
> <https://linux.die.net/man/8/ntp-wait> Can some one let me know what
> corresponding condition I should place in my service unit file to wait
> for this?

didn't you realize that this isn't even a unit to begin with?
"Automatically generated by systemd-sysv-generator"

/etc/init.d/ are never systemd units

in your case i would order a ntpdate between network and ntpd and order
my service as i showed you after ntpd

first get rid of that initscript crap

i doubt that you really want to wait until ntpd say "yeah i am now done
with my initalization"

More information about the systemd-devel mailing list