From owner-freebsd-bugs@FreeBSD.ORG Wed Oct 29 05:00:37 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4DB216A4E8 for ; Wed, 29 Oct 2003 05:00:37 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42ED243FDD for ; Wed, 29 Oct 2003 05:00:36 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h9TD0aFY078697 for ; Wed, 29 Oct 2003 05:00:36 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h9TD0aCD078696; Wed, 29 Oct 2003 05:00:36 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 29 Oct 2003 05:00:36 -0800 (PST) Resent-Message-Id: <200310291300.h9TD0aCD078696@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrey Beresovsky Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4D8616A4CE for ; Wed, 29 Oct 2003 04:54:20 -0800 (PST) Received: from moon.cc.rsu.ru (moon.cc.rsu.ru [195.208.252.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71E8843F85 for ; Wed, 29 Oct 2003 04:54:19 -0800 (PST) (envelope-from and@moon.cc.rsu.ru) Received: from moon.cc.rsu.ru (localhost [127.0.0.1]) by moon.cc.rsu.ru (8.12.9/8.12.9) with ESMTP id h9TCsGHm051893; Wed, 29 Oct 2003 15:54:16 +0300 (MSK) (envelope-from and@moon.cc.rsu.ru) Received: (from and@localhost) by moon.cc.rsu.ru (8.12.9/8.12.9/Submit) id h9TCsFW9051892; Wed, 29 Oct 2003 15:54:15 +0300 (MSK) Message-Id: <200310291254.h9TCsFW9051892@moon.cc.rsu.ru> Date: Wed, 29 Oct 2003 15:54:15 +0300 (MSK) From: Andrey Beresovsky To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: os@rsu.ru Subject: conf/58680: [PATCH] RCNG: shouldn't ldconfig be started before SERVERS? X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andrey Beresovsky List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2003 13:00:37 -0000 >Number: 58680 >Category: conf >Synopsis: [PATCH] RCNG: shouldn't ldconfig be started before SERVERS? >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 29 05:00:35 PST 2003 >Closed-Date: >Last-Modified: >Originator: Andrey Beresovsky >Release: FreeBSD 5.1-CURRENT i386 >Organization: Rostov State University >Environment: System: FreeBSD 5.1-CURRENT #0: Tue Oct 14 00:39:27 MSD 2003 i386 >Description: I'd like to start/stop named (bind9 from ports) using RCNG with following flags: named_enable="YES" named_program="/usr/local/sbin/named" 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. >How-To-Repeat: 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: named_enable="YES" named_program="/usr/local/sbin/named" 4. Reboot. >Fix: --- 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 . /etc/rc.subr >Release-Note: >Audit-Trail: >Unformatted: