Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2001 23:06:23 -0700
From:      "Joe Landers" <landers@hireindex.com>
To:        <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: import NetBSD rc system (multiple DNS servers)
Message-ID:  <00d501c0f6f3$a2fc3f60$168aa8c0@hireindex.com>
References:  <Pine.NEB.3.96L.1010614113409.27518D-100000@fledge.watson.org> <3B29BB3F.2044B314@mindspring.com> <20010616235910.B14839@widomaker.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bind DNS already has this capability: the "options" section
has a directive "pid-file" that you can set to whatever you
desire. For example, on the external server's configuration
you might add:

    options {
        pid-file "/var/run/named.external.pid";
        ...
    };

And, you'll probably also want use a "controls" section as well
with something like:

    controls {
        unix "/var/run/ndc-external" perm 0600 owner 0 group 0;
    };

Joe Landers

----- Original Message ----- 
From: Shannon <shannon@widomaker.com>
To: <freebsd-hackers@FreeBSD.ORG>
Sent: Saturday, June 16, 2001 8:59 PM
Subject: Re: import NetBSD rc system


> On Fri, Jun 15, 2001 at 12:37:35AM -0700, Terry Lambert wrote:
> 
> > The thing that pisses me off most about the use of pid
> > files is that on any border device, you are generally
> > going to run at least two DNS servers (interior, exterior),
> > and will probably run two SMTP servers, and even two HTTP
> > servers and two inetd's.
> > 
> > Putting everything in /var/run under the name of the
> > program gets to be dirt stupid real fast...
> 
> As currently done, sure. But I don't see any huge obstacles in the
> way of extending the rc.d scripts to handle multiple invocations of
> a daemon, and keep track of them. Something similar to how multiple
> interfaces are configured would work, and a simple extension of 
> ${DAEMIN}.pid would suffice for tracking them.  If that gets too
> messy for you, then you probably have a custom setup anyway, and
> will be rolling your own.
> 
> -- 
> shannon@widomaker.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00d501c0f6f3$a2fc3f60$168aa8c0>