Re: How to ensure a systemd unit waits for ntpd to sync before starting?

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

 



On Di, 02.04.19 10:05, Reindl Harald (h.reindl@xxxxxxxxxxxxx) wrote:

> Am 02.04.19 um 09:44 schrieb Debraj Manna:
> >
> >   We have a service that starts at boot. We need to ensure it doesn't
> >   start until the system clock has been synchronized via ntp. The
> >   machines are using |ntpd|
>
> After=ntpd.service
> Wants=ntpd.service

I don't know ntpd. But I surely hope that just starting ntpd will
delay boot-up until a sync is reached. If it does, then this would be
a bug and a misdesign in the ntpd unit files.

(See my other mail how ntpd should do this correctly.)

Lennart

--
Lennart Poettering, Berlin
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




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

  Powered by Linux