Thanks, it was the dash. I changed it to an underscore and it works great.
I also linked it to /etc/rc.d/nsd and set the options in /etc/rc.conf.local.

On Mon, Aug 31, 2015 at 11:49 PM, Antoine Jacoutot <[email protected]>
wrote:

> On Mon, Aug 31, 2015 at 05:04:09PM -0700, Gabriel Kuri wrote:
> > In migrating from bind to nsd, I currently have split views in bind and
> > need to run multiple instances of nsd to accomplish the same thing.
> What's
> > the best way to start multiple instances of nsd? I tried copying
> > /etc/rc.d/nsd to /etc/rc.d/nsd-internal and in the rc script I changed
> > daemon_flags to "-c /var/nsd/etc/nsd-internal.conf" to reflect the new
> > config name, but it doesn't work, that instance of nsd doesn't start and
> > there's no errors in /var/log/daemon and I have no idea why it's not
> > starting. I also updated nsd-internal.conf to use a different port,
> > different PID file and DB name, so they wouldn't conflict with the
> primary
> > instance of nsd, but no luck.
> >
> > Anyone else running multiple instances of nsd, if so, what did you do to
> > get it to work?
>
> Extract from the rc.subr man page:
>
> <...>
>      Apart from a few notable exceptions, rc scripts must follow this
> naming
>      policy:
> <...>
>      2.   Dashes (‘-’) have to be converted to underscores (‘_’).
>
> You should read both rc.d and rc.subr man pages.
> Also, usually it's easier to just link to the original rc.d script instead
> of copying it, so that you can benefit from updates to the original script.
>
> --
> Antoine

Reply via email to