[ntp:questions] Re: sntp hangs if network not available

Christopher Nelson cnelson at nycap.rr.com
Thu Dec 1 20:50:17 UTC 2005

Christopher Nelson wrote:
> Harlan Stenn wrote:
> > Have you seen/tried the '-d' option to sntp?
> Now I have:
>  # sntp -V -P no -r
>  sntp options: a=2 v=2 e=0.100 E=5.000 P=2147483647.000
>     d=15 c=5 x=0 op=1 l=/etc/sntp.pid f=
>  sntp: receive timed out after 3 seconds
> and then it hangs until I Ctrl-C it.  And every value I try for d gives
> me a range error related to -e and -E.

OK, so it waits -d/-c seconds.  From -c having a minimum of 1 and -d
having to be more than twice -d, I get that the minimum timeout is 3
seconds.  Right?  I really don't want to put such a long timeout in a
boot sequence that's already painfully long.  Any thoughts?

More information about the questions mailing list