From owner-freebsd-hackers Sat Jun 16 23: 9:31 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gateway.hireindex.com (adsl-216-102-90-59.dsl.snfc21.pacbell.net [216.102.90.59]) by hub.freebsd.org (Postfix) with ESMTP id A331137B407 for ; Sat, 16 Jun 2001 23:09:13 -0700 (PDT) (envelope-from landers@hireindex.com) Received: (from smapd@localhost) by gateway.hireindex.com (8.9.3/8.9.3) id XAA70686 for ; Sat, 16 Jun 2001 23:09:12 -0700 (PDT) (envelope-from landers@hireindex.com) Received: from services.hireindex.com(192.168.138.5) by gateway.hireindex.com via smap (V2.1) id xma070684; Sat, 16 Jun 01 23:09:11 -0700 Received: from kidserver (kidserver.hireindex.com [192.168.138.22]) by services.hireindex.com (8.9.3/8.9.2) with SMTP id XAA06586 for ; Sat, 16 Jun 2001 23:09:10 -0700 (PDT) (envelope-from landers@hireindex.com) Message-ID: <00d501c0f6f3$a2fc3f60$168aa8c0@hireindex.com> From: "Joe Landers" To: References: <3B29BB3F.2044B314@mindspring.com> <20010616235910.B14839@widomaker.com> Subject: Re: import NetBSD rc system (multiple DNS servers) Date: Sat, 16 Jun 2001 23:06:23 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 To: 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