From owner-freebsd-bugs@FreeBSD.ORG Sun Nov 14 10:30:28 2004 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 8B34816A4CE for ; Sun, 14 Nov 2004 10:30:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57D2843D4C for ; Sun, 14 Nov 2004 10:30:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id iAEAUSvU063603 for ; Sun, 14 Nov 2004 10:30:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id iAEAUSmX063602; Sun, 14 Nov 2004 10:30:28 GMT (envelope-from gnats) Resent-Date: Sun, 14 Nov 2004 10:30:28 GMT Resent-Message-Id: <200411141030.iAEAUSmX063602@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, Oliver Lehmann Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0507716A4CE; Sun, 14 Nov 2004 10:29:08 +0000 (GMT) Received: from kartoffel.salatschuessel.net (pD95207C1.dip.t-dialin.net [217.82.7.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A21443D1F; Sun, 14 Nov 2004 10:29:07 +0000 (GMT) (envelope-from olivleh1@kartoffel.salatschuessel.net) Received: from kartoffel.salatschuessel.net (localhost [127.0.0.1]) iAEAUHhO060985; Sun, 14 Nov 2004 11:30:17 +0100 (CET) (envelope-from olivleh1@kartoffel.salatschuessel.net) Received: (from olivleh1@localhost)iAEAUHp3060984; Sun, 14 Nov 2004 11:30:17 +0100 (CET) (envelope-from olivleh1) Message-Id: <200411141030.iAEAUHp3060984@kartoffel.salatschuessel.net> Date: Sun, 14 Nov 2004 11:30:17 +0100 (CET) From: Oliver Lehmann To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: Oliver Lehmann Subject: bin/73929: /etc/rc.d/named will not work with ports-named X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Oliver Lehmann List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2004 10:30:28 -0000 >Number: 73929 >Category: bin >Synopsis: /etc/rc.d/named will not work with ports-named >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: Sun Nov 14 10:30:27 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Oliver Lehmann >Release: FreeBSD 4.10-STABLE i386 >Organization: >Environment: System: FreeBSD kartoffel.salatschuessel.net 4.10-STABLE FreeBSD 4.10-STABLE #0: Fri Jun 4 20:32:48 CEST 2004 olivleh1@kartoffel.salatschuessel.net:/usr/obj/usr/src/sys/KARTOFFEL i386 FreeBSD avocado.salatschuessel.net 5.3-STABLE FreeBSD 5.3-STABLE #1: Sat Nov 13 15:16:49 CET 2004 olivleh1@avocado.salatschuessel.net:/usr/obj/usr/src/sys/AVOCADO i386 >Description: /etc/rc.d/named tries to run rndc-confgen if "${named_chrootdir}/etc/namedb/rndc.key" and "${named_chrootdir}/etc/namedb/rndc.conf" is nonexistent. a) rndc-confgen installed from dns/bind93 only generates /usr/local/etc/rndc.key and ${confgen_chroot}/usr/local/etc/rndc.key so rndc-confgen will be run everytime /etc/rc.d/named is called. b) /usr/local/sbin isn't in PATH at bootup - calling "rndc-confgen" at bootup will fail. That will cause named to not startup. >How-To-Repeat: remove base-bind, install bind from ports, run /etc/rc.d/named and/or reboot >Fix: PREFIX=${named_program%%/sbin/named} if [ "${PREFIX}" = "/usr" -a ! -f "${named_chrootdir}/etc/namedb/rndc.key" -a ! -f "${named_chrootdir}/etc/namedb/rndc.conf" ] || \ [ "${PREFIX}" != "/usr" -a ! -f "${named_chrootdir}/${PREFIX}/etc/rndc.key" ] ; then ${PREFIX}/sbin/rndc-confgen -a -b256 ${confgen_chroot} fi >Release-Note: >Audit-Trail: >Unformatted: