NSD 4.0.1 wont start after upgrad

Darren Pilgrim list_freebsd at bluerosetech.com
Sun Feb 9 16:49:53 UTC 2014


On 2/8/2014 4:23 PM, Iqbal Aroussi wrote:
> On Sat, Feb 8, 2014 at 6:45 PM, Juergen Nickelsen <ni at w21.org> wrote:
>
>> On 2014-02-08, at 21:07, Iqbal Aroussi <iqbal at aroussi.ca> 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.



More information about the freebsd-questions mailing list