From owner-freebsd-current@FreeBSD.ORG Mon Jun 18 22:27:40 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 812AC16A46C for ; Mon, 18 Jun 2007 22:27:40 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.freebsd.org (Postfix) with ESMTP id 49CB913C4B9 for ; Mon, 18 Jun 2007 22:27:39 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id 53A0344978 for ; Tue, 19 Jun 2007 00:27:39 +0200 (CEST) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 1AAE19B497 for ; Mon, 18 Jun 2007 22:27:20 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 27CEE405B; Mon, 18 Jun 2007 00:58:25 +0200 (CEST) Date: Mon, 18 Jun 2007 00:58:25 +0200 From: Jeremie Le Hen To: freebsd-current@FreeBSD.org Message-ID: <20070617225824.GA88370@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.15 (2007-04-06) Cc: Subject: 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, 18 Jun 2007 22:27:40 -0000 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. Any comment about this? Best regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >