From owner-freebsd-current@FreeBSD.ORG Mon Jul 16 14:57:46 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E69C816A417 for ; Mon, 16 Jul 2007 14:57:46 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 9D38013C4AC for ; Mon, 16 Jul 2007 14:57:46 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.7b8) with ESMTP id 196960699 for multiple; Mon, 16 Jul 2007 11:05:57 -0400 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l6GEvML9032514; Mon, 16 Jul 2007 10:57:38 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Mon, 16 Jul 2007 09:17:51 -0400 User-Agent: KMail/1.9.6 References: <20070617225824.GA88370@obiwan.tataz.chchile.org> In-Reply-To: <20070617225824.GA88370@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707160917.51941.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 16 Jul 2007 10:57:38 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/3681/Mon Jul 16 09:16:18 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Jeremie Le Hen Subject: Re: RFC for wider rc.conf.d/ for jails X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 14:57:47 -0000 On Sunday 17 June 2007 06:58:25 pm Jeremie Le Hen wrote: > Hi, > > It is only possible to use /etc/rc.conf.d/${name}, where ${name} is the > command name in rc(8) scripts. For instance, one can use use > /etc/rc.conf.d/named thanks to /etc/rc.d/named. However it is not > possible to use /etc/rc.conf.d/foo because command "foo" is not provided > by any rc.d script. > > I would like to extend this behaviour for /etc/rc.d/jail in order to > be able to have one file per jail. It would require to either modify > rc.subr or hack up etc/rc.d/jail to include some additional files. > I am thinking about the following layout: > > % # cat rc.conf.d/jail > % jail_list="mail www" > % # cat rc.conf.d/jail.mail > % [...] # "mail" jail configuration variables. > % # cat rc.conf.d/jail.www > % [...] # "www" jail configuration variables. Maybe instead /etc/jail/mail, etc.? I'd rather not overload /etc/rc.conf.d since it already has a well-defined meaning. -- John Baldwin