Problem starting named in FreeBSD 10.2
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/NETWORKING <--
> /etc/rc.d/ldconfig <--
> /etc/rc.d/syslogd <--
> /usr/local/etc/rc.d/named <--
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.
> In a pinch you might be able to move on by running something like
> 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