conf/58680: [PATCH] RCNG: shouldn't ldconfig be started before
and at rsu.ru
Wed Oct 29 05:00:37 PST 2003
>Synopsis: [PATCH] RCNG: shouldn't ldconfig be started before SERVERS?
>Arrival-Date: Wed Oct 29 05:00:35 PST 2003
>Originator: Andrey Beresovsky
>Release: FreeBSD 5.1-CURRENT i386
Rostov State University
System: FreeBSD 5.1-CURRENT #0: Tue Oct 14 00:39:27 MSD 2003 i386
I'd like to start/stop named (bind9 from ports) using RCNG with following flags:
When I use it manualy (/etc/rc.d/named start|stop|status) it works ok. But
during system startup it fails because named binary depends on
/usr/local/lib/libcrypto.so (openssl installed from ports) and rtld can't find
it since ldconfig wasn't ran yet.
I suggest running ldconfig before SERVERS (currently it is being ran before DAEMON)
If this is not "the right thing" then we should find appropriate solution for this problem.
1. Build world with NO_OPENSSL and NO_BIND.
2. Install dns/bind9 and security/openssl from ports.
3. Write the following to /etc/rc.conf:
--- ldconfig Mon Oct 13 23:35:02 2003
+++ ldconfig.patched Wed Oct 29 15:41:20 2003
@@ -6,7 +6,7 @@
# PROVIDE: ldconfig
# REQUIRE: mountall mountcritremote
-# BEFORE: DAEMON
+# BEFORE: SERVERS
# KEYWORD: FreeBSD NetBSD
More information about the freebsd-bugs