Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Nov 2011 22:51:16 -0400
From:      Robert Simmons <rsimmons0@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: ntpdate on boot problem
Message-ID:  <CA%2BQLa9A4e0LxoHD1gOT47iwwymVoT8t5-S5d2B8TGyB4uytzfQ@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1111051739330.28513@wonkity.com>
References:  <CA%2BQLa9CfBYRshynTPDkYDapA_M_rDr-UD6sh-JYBGfSPONBJYQ@mail.gmail.com> <alpine.BSF.2.00.1111051653120.28513@wonkity.com> <CA%2BQLa9A4h-jK421pgPxe0wDZCnFnN2LV0N6YFQ32YWqbOw2LKg@mail.gmail.com> <alpine.BSF.2.00.1111051739330.28513@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 5, 2011 at 7:43 PM, Warren Block <wblock@wonkity.com> wrote:
> netwait_enable="YES"
> netwait_ip="192.168.1.1" # IP address to ping to verify network is up
> netwait_if="em0" # interface to use
>
>
> Also there's netwait_timeout, which defaults to 60 in /etc/defaults/rc.conf.

I've finally got a combination of suggested configurations that get me
to where I want to be (using ntpd, ntpdate, and netwait).

However, I've found that I still need ntpdate_enable="YES" rather than
ntpd_sync_on_start="YES".  The reason for this is that I'm running at
securelevel 3, and ntpd takes too long to get up, running, and sync
the clock.  By the time it tries to adjust the clock, secure level has
already been raised preventing the adjustment.

Is there a way to make securelevel wait until ntpd has made its
adjustments?  When I use ntpdate at this point, it seems like the init
scripts are sequential, and it waits until ntpdate is done before
continuing and later raising securelevel.

It seems that even though ntpdate is deprecated that it is still
required if you want to run securelevel 3.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BQLa9A4e0LxoHD1gOT47iwwymVoT8t5-S5d2B8TGyB4uytzfQ>