Created attachment 157017 [details]
This script generates dependency graph of all rc scripts with graphviz (ovals are orphans).
Hi all. Got riddle for ya.
(I'm running STABLE-10)
Technically during startup 'ldconfig' should be after 'mountcritremote' that requires 'NETWORKING' so that network mounted filesystems would work. With 'named' being part of network connectivity it should start before 'NETWORKING' but if it requires libxml or some other /usr/local library it should start after 'ldconfig'. Hence the loop.
Right now rcorder places 'named' before 'ldconfig' for me thus 'named' startup fails.
I'm directing this to the port maintainer to confirm the problem in case I'm wrong somewhere. I don't know how to fix it. From my point of view rcorder should be fixed instead to value REQUIRE statements higher then BEFORE statements.
Assign to maintainer of bind910. Keep portmgr in the Cc: for evaluation of the graphviz script (which sounds interesting to me).
Mmmmm, I think I know why it never failed for me, I build WITH_OPENSSL_PORTS, and it adds :
# readelf -d /usr/local/sbin/named|grep local
0x000000000000000f (RPATH) Library rpath: [/usr/local/lib]
0x000000000000001d (RUNPATH) Library runpath: [/usr/local/lib]
so it always can find:
# ldd /usr/local/sbin/named|grep local
libcrypto.so.8 => /usr/local/lib/libcrypto.so.8 (0x800aa8000)
libGeoIP.so.1 => /usr/local/lib/libGeoIP.so.1 (0x8010b2000)
libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x8012e8000)
libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x80185a000)
even before ldconfig runs at startup.
I wonder if:
# REQUIRE: NETWORKING ldconfig
# BEFORE: syslogd
would be ok ?
Yep, everything starts correctly now. The rcorder part between ldconfig and named for me looks like:
But this mostly due to 'tcsd' (security/trousers) want's to start before 'named' and after 'SERVERS'. I'll go howl at that hole now.
A commit references this bug:
Date: Mon Jun 1 10:14:00 UTC 2015
New revision: 388211
Make BIND start a bit later (and really *after* ldconfig.) 
Add an option to have it start way later.
PR: 200375 
Sponsored by: Absolight