From owner-freebsd-questions@FreeBSD.ORG Sun Feb 9 16:49:53 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 61A0B21C for ; Sun, 9 Feb 2014 16:49:53 +0000 (UTC) Received: from luigi.brtsvcs.net (luigi.brtsvcs.net [204.109.60.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 39C571396 for ; Sun, 9 Feb 2014 16:49:52 +0000 (UTC) Received: from chombo.houseloki.net (unknown [IPv6:2601:7:880:bd0:21c:c0ff:fe7f:96ee]) by luigi.brtsvcs.net (Postfix) with ESMTPSA id B98022D4FAE; Sun, 9 Feb 2014 08:49:26 -0800 (PST) Received: from [IPv6:2601:7:880:bd0:604d:cd62:f943:4d46] (unknown [IPv6:2601:7:880:bd0:604d:cd62:f943:4d46]) by chombo.houseloki.net (Postfix) with ESMTPSA id DF4CF86B; Sun, 9 Feb 2014 08:49:43 -0800 (PST) Message-ID: <52F7B1A6.5070702@bluerosetech.com> Date: Sun, 09 Feb 2014 08:49:42 -0800 From: Darren Pilgrim User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Iqbal Aroussi , Juergen Nickelsen Subject: Re: NSD 4.0.1 wont start after upgrad References: <437A267C-F698-4FF1-A4BF-C63634540F19@w21.org> <6E5755D9-2A53-4B32-BAD0-D4BDC98D5CB9@w21.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Feb 2014 16:49:53 -0000 On 2/8/2014 4:23 PM, Iqbal Aroussi wrote: > On Sat, Feb 8, 2014 at 6:45 PM, Juergen Nickelsen wrote: > >> On 2014-02-08, at 21:07, Iqbal Aroussi wrote: >> >>> nsd_enable to YES is already in rc.conf >> >> But apparently it is not in /usr/local/etc/rc.d/nsd, hence the error >> message. >> >> If it is really set /etc/rc.conf (I trust you re-checked that), you'll >> have to figure out where it where it gets lost. I usually investigate such >> problems by liberally sprinkling statements like "echo >> nsd_enable=$nsd_enable" all over the place, i.e. in the relevant places in >> all scripts involved. >> >> Regards, Juergen. >> > > Hi Juergen, > > Yes I verified twice. and nsd_enable is set to YES in my /etc/rc.conf file. > > I compared the two rc scripts for nsd 4.0.0 and 4.0.1 > and there is a lot of missing lines in the new version. > > Unfortunately, I'm not rc scripts expert so I substituted the new > /usr/local/etc/rc.d/nsd by old content and it works as expected. Yep, it's broken. There's other problems as well, but the main culprit is a lack of "load_rc_config $name". Here's the one I use locally: http://pastebin.com/m0YxjZCE Drop that into ports/dns/nsd/files/nsd.in and reinstall the port. You can also pipe it through `sed 's#%%PREFIX%%#/usr/local#g'` directly into /usr/local/etc/rc.d/nsd, but pkg will complain about a mismatch when you uninstall the port.