named and ntpd start order in rc.d

Nerius Landys nlandys at
Fri Dec 5 14:42:51 PST 2008

> That's not correct. BEFORE  and  REQUIRE are used by rcorder to
> determine the ordering of the scripts without checking if they are
> enabled. Actually all scripts get run - if you don't enable ntpdate then
> rc.d/ntpdate still runs, but doesn't do anything.

My mistake.  But then I don't understand why enabling ntpdate in
rc.conf fixed my problem of ntpd's DNS resolver child process not
completing (returning).  My guess was that NETWORK and named were
guaranteed getting run before ntpd if I included ntpdate in rc.conf.
I thought that perhaps NETWORK and named were not getting run before
ntpd in my particular case when I didn't include ntpdate in rc.conf.
But according to your information NETWORK and named scripts would get
run before the ntpd script no matter if ntpdate was enabled in rc.conf
or not (because NETWORK and named are required by ntpdate and ntpdate
is required by ntpd).

So why did enabling ntpdate in rc.conf fix my problem?

More information about the freebsd-questions mailing list