On Thu, Nov 21, 2019 at 03:48:44PM +0500, dmitry.sensei wrote:
| Hi!
| 
| Since "-s" key had been deleted how I can setup time on startup?

>From ntpd(8):

> ntpd makes efforts to verify and correct the time at boot if
> constraints are configured and satisfied or if trusted servers or
> sensors return results, and if the clock is not being moved backwards.

So you should configure a constraint[1] or a trusted[2] server or
sensor.  Then, at boot, ntpd will take care of correcting the clock if
it's off by too much.  See ntpd.conf(5) for details.

This was documented in an e-mail to tech@ by Theo two weeks ago,
there's an undeadly.org article[3] with his post and references to the
various commits that play a part here.

Cheers,

Paul 'WEiRD' de Weerd

[1]: http://man.openbsd.org/ntpd.conf#CONSTRAINTS
[2]: http://man.openbsd.org/ntpd.conf#sensor
[3]: http://undeadly.org/cgi?action=article;sid=20191111075815

-- 
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
                 http://www.weirdnet.nl/                 

Reply via email to