2007/10/25, Boris Goldberg <[EMAIL PROTECTED]>:
> Hello Mark,
>
> Thursday, October 25, 2007, 4:13:09 PM, you wrote:
>
> MZ> On Thu, Oct 25, 2007 at 11:19:21AM -0500, Boris Goldberg wrote:
> >>
> >>   Thank you very much for that (valuable) reply!
> >>   BTW,  this  is  an argument for making an OpenNTPD ntpdate tool or adding
> >> one_time_synchronization functionality into ntpd. :)
>
> MZ> From ntpd(8):
>
> MZ>      -s          Set the time immediately at startup if the local clock 
> is off
> MZ>                  by more than 180 seconds.  Allows for a large time 
> correc-
> MZ>                  tion, eliminating the need to run rdate(8) before 
> starting
> MZ>                  ntpd.
>
> MZ> Or is that not what you meant?
>
> MZ> Just put ntpd_flags="-s" into /etc/rc.conf.local.
>
>   No, I mean synchronize_and_exit - like rdate -ncav, but more secure (with
> a privilege separation, like Brian explained above in a thread).

ntpd -s; sleep 300; pkill ntpd



Piotr Kapczuk

Reply via email to