Problem starting named in FreeBSD 10.2

Olivier Nicole Olivier.Nicole at cs.ait.ac.th
Wed Sep 16 08:00:19 UTC 2015


Trond Endrestøl <Trond.Endrestol at fagskolen.gjovik.no> writes:

> [1:text/plain Hide]
>
> On Tue, 15 Sep 2015 09:40-0400, kpneal at pobox.com wrote:
>
>> On Tue, Sep 15, 2015 at 04:44:43PM +0700, Olivier Nicole wrote:
>> > Hi,
>> > 
>> > I am having problems starting named in FreeBSD 10.2. I have been using
>> > the exact same rc.d/named script for years, it is still working in FreeBSD 10.1
>> > 
>> > The rc.d/named script contains a REQUIRE line that is not honnorred:
>> > 
>> > # REQUIRE: NETWORKING ldconfig syslogd
>> 
>> Is it possible there is a loop in the dependencies somewhere? I can imagine
>> breaking a loop by ignoring a REQUIRE line somewhere.
>
> Try running (sh syntax):
>
> rcorder /etc/rc.d/* /usr/local/etc/rc.d/* 2>&1 | less
>
> On one of my DNS servers, I see these lines:
>
> /etc/rc.d/ipfw
> /etc/rc.d/NETWORKING      <--
> /etc/rc.d/netwait
> /etc/rc.d/mountcritremote
> /etc/rc.d/accounting
> /etc/rc.d/ldconfig        <--
> /etc/rc.d/newsyslog
> /etc/rc.d/syslogd         <--
> /etc/rc.d/ntpdate
> /etc/rc.d/rpcbind
> /etc/rc.d/nfsclient
> /etc/rc.d/devfs
> /etc/rc.d/ipmon
> /etc/rc.d/mdconfig2
> /usr/local/etc/rc.d/named <--
> /etc/rc.d/kdc

That did the trick. I had an old rc.d/named left there and having both
of them created a loop. I removed the old one and it worked.

I did not know of rcorder, thank you for th etrick.

> If libxml2.so.2 is missing from /usr/local/lib, then check to see if 
> files named libxml2.so.2.* exists in /usr/local/lib/compat/pkg/.

The lib did exist, it was just the loop that prevented ldconfig to be
called before named.

Thank you,

Olivier

> In a pinch you might be able to move on by running something like 
> this:
>
> ln -s libxml2.so.2.9.2 /usr/local/lib/compat/pkg/libxml2.so.2
>
> Substitute libxml2.so.2.9.2 with the newest file as found in 
> your /usr/local/lib/compat/pkg directory. In my case, I can choose 
> between libxml2.so.2.9.1 and libxml2.so.2.9.2.
>
> Next, I would probably reinstall/forcefully upgrade textproc/libxml2.

-- 


More information about the freebsd-questions mailing list