Date: Sun, 09 Feb 2014 08:49:42 -0800 From: Darren Pilgrim <list_freebsd@bluerosetech.com> To: Iqbal Aroussi <iqbal@aroussi.ca>, Juergen Nickelsen <ni@w21.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: NSD 4.0.1 wont start after upgrad Message-ID: <52F7B1A6.5070702@bluerosetech.com> In-Reply-To: <CAH5Z8-qi7uNZpSY4CkHixYojpXHP96zN4rhxBasO3Jh_s3MFrw@mail.gmail.com> References: <CAH5Z8-pzZL9B7a94qim25uHt_pEAfa9X2paD9U5czTbnJnnG=A@mail.gmail.com> <437A267C-F698-4FF1-A4BF-C63634540F19@w21.org> <CAH5Z8-r2qsi2ggUyqMV5bRXGJNXB0vuTb2FibtyJnrFcDsW-JQ@mail.gmail.com> <6E5755D9-2A53-4B32-BAD0-D4BDC98D5CB9@w21.org> <CAH5Z8-qi7uNZpSY4CkHixYojpXHP96zN4rhxBasO3Jh_s3MFrw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/8/2014 4:23 PM, Iqbal Aroussi wrote: > On Sat, Feb 8, 2014 at 6:45 PM, Juergen Nickelsen <ni@w21.org> wrote: > >> On 2014-02-08, at 21:07, Iqbal Aroussi <iqbal@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52F7B1A6.5070702>