From owner-freebsd-ports@FreeBSD.ORG Fri Jan 7 19:53:18 2011 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C255C1065780; Fri, 7 Jan 2011 19:53:18 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from u18-124.dslaccess.de (unknown [194.231.39.124]) by mx1.freebsd.org (Postfix) with ESMTP id 6B9288FC13; Fri, 7 Jan 2011 19:53:18 +0000 (UTC) Received: from [172.20.1.100] (unknown [172.20.1.100]) by u18-124.dslaccess.de (Postfix) with ESMTPSA id 5E93A205E0; Fri, 7 Jan 2011 20:53:13 +0100 (CET) Message-ID: <4D277015.8010107@FreeBSD.org> Date: Fri, 07 Jan 2011 20:57:09 +0100 From: Olli Hauer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Doug Barton References: <4D243672.4040803@douglasthrift.net> <4D266320.2020803@FreeBSD.org> In-Reply-To: <4D266320.2020803@FreeBSD.org> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, wxs@FreeBSD.org, Douglas Thrift Subject: Re: FreeBSD Port: isc-dhcp41-server-4.1.2,1; Concurrent IPv4 DHCP and DHCPv6 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ohauer@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2011 19:53:18 -0000 On 2011-01-07 01:49, Doug Barton wrote: > On 01/05/2011 01:14, Douglas Thrift wrote: >> Hello, >> >> Since ISC dhcpd 4.1 now supports DHCPv6, but a single instance of the >> daemon can't do both IPv4 DHCP and DHCPv6, it would be nice if the rc.d >> script from the port could be configured to start the daemon twice. Has >> anyone thought about this at all or implemented anything? > > I really dislike this trend that we're seeing of individual rc.d scripts > supporting running multiple versions of the same daemon, but I haven't yet found > the time to write it up for TPH. The canonical way to do this is for the rc.d > script to have multiple copies of itself, and then do something like: > > name="${0##*/}" > > For this example you could have the port install rc.d/dhcpd by default (or > whatever the name is, not suggesting a change), and an option to also install > dhcpd_v6 (perhaps as a symlink). This would make it easy to clean up as the > additional copy of the script should also be in the plist. > > The other reason I haven't squawked more about this is that for services that > would like to be able to run an arbitrary number of the same daemon the > servicename_N_{flags|pidfile|etc} method works, and eliminates the problem of > leaving behind multiple numbers of the script after port deinstall. But for > something like this where we're discussing a fixed (and small) number of copies > it's better to have this done the "right" way. > > > hth, > > Doug Maybe something like the apache22 rc script will work. Apache22 can start more than one instance and it is easy to control all or only a single instance with the apache rc script. And the best, it works without links