From owner-freebsd-rc@FreeBSD.ORG Wed Jun 7 01:32:48 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AFD116AD08 for ; Wed, 7 Jun 2006 01:14:25 +0000 (UTC) (envelope-from erdgeist@erdgeist.org) Received: from elektropost.org (elektropost.org [80.237.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A5DE43D46 for ; Wed, 7 Jun 2006 01:14:24 +0000 (GMT) (envelope-from erdgeist@erdgeist.org) Received: (qmail 64997 invoked by uid 0); 7 Jun 2006 01:14:17 -0000 Received: from fnord.cryptophone.de (HELO ?10.1.1.71?) (erdgeist@erdgeist.org@62.220.7.20) by elektropost.org with AES256-SHA encrypted SMTP; 7 Jun 2006 01:14:17 -0000 Message-ID: <44862864.7050800@erdgeist.org> Date: Wed, 07 Jun 2006 03:14:12 +0200 From: Dirk Engling User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060530) MIME-Version: 1.0 To: freebsd-rc X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: jail configs separation X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 01:32:49 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The patch available at http://erdgeist.org/arts/software/jail/jail.1.34.diff does the following things: * Allow jail names of the kind foo.com, those are converted into foo_com * Scan /etc/jails for jail configs, sort them by rcorder and add them to jail_list, when script is invoked without parameters * Test for /etc/jails/ for each jail and try to source config file This helps in the automation of jail creation, deletion and configuration. You can put configs for all your jails into a central directory and have the list automatically generated by the directories content. Editing /etc/rc.conf and providing lots of repetitive lines becomes unnecessary. The rcorder statements inside jail configs enable the user to exactly specify startup order of jails. The clean up of jail configs enables configuration utilities to easily access config for certain jails without expansive parsing of /etc/rc.conf. For an outline of how this might look like, see the ezjail project page. Further the patch removes the "ifconfig -alias " when stopping jails, since this is outright dangerous as already described in http://docs.freebsd.org/cgi/getmsg.cgi?fetch=14661+0+archive/2006/freebsd-rc/20060514.freebsd-rc Having the IP configured on your interface, even if you don't need it, should not be a problem. Comments? Suggestions? erdgeist -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (Darwin) iD8DBQFEhihjImmQdUyYEgkRAlCeAKCA6in7kRhE1uq2KF1UIIXEr1xKhgCbBOXc Nk5J6hodYWjt4LRE0+DVI1U= =VHjH -----END PGP SIGNATURE-----