From owner-freebsd-rc@FreeBSD.ORG Mon Jul 17 11:03:07 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 74F7E16A4EE for ; Mon, 17 Jul 2006 11:03:07 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E95D743D45 for ; Mon, 17 Jul 2006 11:03:06 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6HB36sb071649 for ; Mon, 17 Jul 2006 11:03:06 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6HB34jJ071642 for freebsd-rc@freebsd.org; Mon, 17 Jul 2006 11:03:04 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 17 Jul 2006 11:03:04 GMT Message-Id: <200607171103.k6HB34jJ071642@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 17 Jul 2006 11:03:07 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/03/03] conf/48881 rc [PATCH] The influence of /etc/start_ifnam o [2006/06/09] conf/98734 rc [patch] /etc/rc.subr restart_postcmd is f 2 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/11/12] conf/45226 rc Fix for rc.network, ppp-user annoyance o [2003/03/03] conf/48870 rc [PATCH] rc.network: allow to cancel inter o [2003/08/24] conf/55916 rc [PATCH] ppp-user options o [2003/11/04] conf/58939 rc [patch] dumb little hack for /etc/rc.fire o [2004/11/08] conf/73677 rc [patch] add support for powernow states t o [2004/12/07] conf/74817 rc [patch] network.subr: fixed automatic con o [2005/02/18] conf/77663 rc Suggestion: add /etc/rc.d/addnetswap afte o [2005/03/16] conf/78906 rc [patch] Allow mixer_enable="NO" in rc.con o [2005/03/24] conf/79196 rc [PATCH] configurable dummynet loading fr o [2005/05/14] kern/81006 rc ipnat not working with tunnel interfaces o [2005/08/27] conf/85363 rc syntax error in /etc/rc.d/devfs o [2005/09/07] conf/85819 rc [patch] script allowing multiuser mode in o [2005/11/13] conf/88913 rc [patch] wrapper support for rc.subr o [2005/11/15] conf/89061 rc [patch] IPv6 6to4 auto-configuration enha o [2005/12/03] conf/89870 rc [patch] feature request to make netif ver o [2006/01/30] conf/92523 rc [patch] allow rc scripts to kill process o [2006/02/25] conf/93815 rc [patch] Adds in the ability to save ipfw o [2006/03/31] conf/95162 rc [patch] Missing feature in rc.subr o [2006/04/26] conf/96343 rc [patch] rc.d order change to start inet6 o [2006/05/04] conf/96766 rc run_rc_command doesn't work for Python sc o [2006/05/15] conf/97311 rc [patch] /etc/rc.d/ipfilter reload can loa o [2006/06/25] conf/99444 rc [patch] Enhancement: rc.subr could easily o [2006/06/28] conf/99595 rc [PATCH] /etc/rc.d/dhclient doesn't intera o [2006/07/02] conf/99721 rc [patch] /etc/rc.initdiskless problem copy o [2006/07/14] bin/100287 rc /etc/rc.subr cannot deal properly with in 25 problems total. From owner-freebsd-rc@FreeBSD.ORG Wed Jul 19 12:55:28 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 D786916A4DD for ; Wed, 19 Jul 2006 12:55:28 +0000 (UTC) (envelope-from flz@xbsd.org) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 402B743D66 for ; Wed, 19 Jul 2006 12:55:22 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by smtp4-g19.free.fr (Postfix) with ESMTP id 1A90554A22 for ; Wed, 19 Jul 2006 14:55:22 +0200 (CEST) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 3048B11B20 for ; Wed, 19 Jul 2006 14:55:20 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 33802-04 for ; Wed, 19 Jul 2006 14:55:11 +0200 (CEST) Received: from mayday.esat.net (mayday.esat.net [193.95.134.156]) by smtp.xbsd.org (Postfix) with ESMTP id 49C3C11B13 for ; Wed, 19 Jul 2006 14:55:09 +0200 (CEST) From: Florent Thoumie To: freebsd-rc@FreeBSD.org In-Reply-To: <1151336698.39710.23.camel@mayday.esat.net> References: <1151336698.39710.23.camel@mayday.esat.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-oYtoKk3s2ksaBDkFBn8y" Date: Wed, 19 Jul 2006 13:55:06 +0100 Message-Id: <1153313706.70633.8.camel@mayday.esat.net> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Cc: Subject: Re: RFC: new rc.d/jail changes (templating fstab entries and rootdir) 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, 19 Jul 2006 12:55:28 -0000 --=-oYtoKk3s2ksaBDkFBn8y Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2006-06-26 at 16:44 +0100, Florent Thoumie wrote: > If you're reading this mailing list attentively, you surely already > noticed those lines in last bugmaster mail : >=20 > o [2006/06/09] conf/98758 rc [patch] Templatize 'jail_fstab' in /etc/r > o [2006/06/12] conf/98846 rc [patch] Templatize 'jail_rootdir' in /etc >=20 > While I share Sergey's idea of templating things where possible, I don't > like having %%FOO%% everywhere. >=20 > I've written a patch which seems to address both of these "issues". >=20 > Basically, it's used like this : >=20 > jail_rootdir=3D"\${_name}" > jail_rootdir=3D"\${_hostname}" > jail_rootdir=3D"\${_ip}" >=20 > jail_mount_list=3D"ports" or > jail__mount_list=3D"ports" >=20 > jail_mount_ports_args=3D"-t nullfs /usr/ports \${_rootdir}/usr/ports" >=20 > Obviously I preferred my way to do those things but I'd like to get some > review before it makes it to the tree. >=20 > Patch is here : http://people.freebsd.org/~flz/local/jail-tpl.diff Ping? --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer --=-oYtoKk3s2ksaBDkFBn8y Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQBEviuqMxEkbVFH3PQRAi84AKCIA7CDnNb+kw5ns53HtPQqM7EAPwCfQIJj xln22oD/LYJ+CCglXiwi2XA= =nDm1 -----END PGP SIGNATURE----- --=-oYtoKk3s2ksaBDkFBn8y-- From owner-freebsd-rc@FreeBSD.ORG Wed Jul 19 13:16:31 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 6F13E16A4DE for ; Wed, 19 Jul 2006 13:16:31 +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 94BC443D46 for ; Wed, 19 Jul 2006 13:16:30 +0000 (GMT) (envelope-from erdgeist@erdgeist.org) Received: (qmail 60040 invoked by uid 0); 19 Jul 2006 13:15:37 -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; 19 Jul 2006 13:15:37 -0000 Message-ID: <44BE30AD.3020106@erdgeist.org> Date: Wed, 19 Jul 2006 15:16:29 +0200 From: Dirk Engling User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060516) MIME-Version: 1.0 To: Florent Thoumie References: <1151336698.39710.23.camel@mayday.esat.net> <1153313706.70633.8.camel@mayday.esat.net> In-Reply-To: <1153313706.70633.8.camel@mayday.esat.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org Subject: Re: RFC: new rc.d/jail changes (templating fstab entries and rootdir) 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, 19 Jul 2006 13:16:31 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Florent Thoumie wrote: > Ping? I don't like the way all this goes. The problem (still) is, that there is no good abstraction for a jail, hence it is hard to group jails together which would be the right way to 'templatize' common actions. Mount stuff belongs to /etc/fstab.jailname, period. It does not (or rarely) change, so there is really no need to do run time calculations and even put variable names into your rc.conf (which seems a bad idea in itself). If you have a proper abstraction and can group jails, editing those fstabs via a configuration utility should be simple. My mail with the proposed patch to start abstracting jails in /etc/jails has been ignored on the list, maybe this is the right time to bring it up again: http://erdgeist.org/arts/software/jail/jail.1.34.diff with that patch it is possible to have an alternative location for your jail configs without the need to configure the jail list manually in rc.conf. Those per-jail config files can be read, altered and deleted by very simple means. They could serve as a convenient starting point to templatize at creation time, not run time. Any comments, criticism? Regards erdgeist -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFEvjCsImmQdUyYEgkRAszvAJ4oWuriTX/38U6m6w7soSXdkveLdACgkhhE pE2N5kCiQ+TtzLtu4T/sJWg= =gUET -----END PGP SIGNATURE----- From owner-freebsd-rc@FreeBSD.ORG Sat Jul 22 11:15:00 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 EB8AF16A4E7 for ; Sat, 22 Jul 2006 11:15:00 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41BF843D55 for ; Sat, 22 Jul 2006 11:14:56 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id k6MBEnFN023362 for ; Sat, 22 Jul 2006 15:14:49 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id k6MBEnKO023361 for freebsd-rc@freebsd.org; Sat, 22 Jul 2006 15:14:49 +0400 (MSD) (envelope-from yar) Date: Sat, 22 Jul 2006 15:14:49 +0400 From: Yar Tikhiy To: freebsd-rc@freebsd.org Message-ID: <20060722111449.GE10321@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: Generalising ${required_*} 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: Sat, 22 Jul 2006 11:15:01 -0000 Hi all, As of now, the ${required_*} variables work only in rc.d scripts using the default start method. I've found that making ${required_*} work in scripts that override the default start method can help us to reduce code duplication in /etc/rc.d. In particular, I'd like to introduce ${required_modules} because quite a few scripts have to have a prestart method just to load a kernel module. Do you think such change would make sense? Thanks. Its prototype can be found in my P4 tree: //depot/user/yar/hack/etc/... (also available via www at http://perforce.freebsd.org) -- Yar From owner-freebsd-rc@FreeBSD.ORG Sat Jul 22 14:44:27 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 4DF9116A4DA for ; Sat, 22 Jul 2006 14:44:27 +0000 (UTC) (envelope-from cryx-freebsd@h3q.com) Received: from mail.h3q.com (mail.h3q.com [217.13.206.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4350943D69 for ; Sat, 22 Jul 2006 14:44:22 +0000 (GMT) (envelope-from cryx-freebsd@h3q.com) Received: (qmail 13931 invoked from network); 22 Jul 2006 14:44:20 -0000 Received: from unknown (HELO ?192.168.23.34?) (cryx@85.178.125.74) by mail.h3q.com with AES256-SHA encrypted SMTP; 22 Jul 2006 14:44:20 -0000 Message-ID: <44C239C0.1090103@h3q.com> Date: Sat, 22 Jul 2006 16:44:16 +0200 From: Philipp Wuensche User-Agent: Thunderbird 1.5.0.2 (Macintosh/20060308) MIME-Version: 1.0 To: freebsd-rc@FreeBSD.org References: <1151336698.39710.23.camel@mayday.esat.net> <1153313706.70633.8.camel@mayday.esat.net> In-Reply-To: <1153313706.70633.8.camel@mayday.esat.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: RFC: new rc.d/jail changes (templating fstab entries and rootdir) 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: Sat, 22 Jul 2006 14:44:27 -0000 Florent Thoumie wrote: > Ping? This seems to be a very dirty hack which is highly error-prone and has high potential for the user to trash their system, the same is true for the ipaddr-alias configuration stuff in rc.d/jail. Neither do I like the usage of variables in rc.conf and fstab nor using ifconfig alias/-alias in rc.d/jail which gives plenty possibilites to trash the system in the way it is currently implemented. The ideas are basically interesting and useful for using jails but the way of implementation is not very foresighted. I think we need a clear abstraction of managing jails and implementing features like fstab templates and interface configuration for jails. The current system of managing jails in freebsd is okay for the basics but when it comes to managing a whole bunch (>5) of jails it gets very unhandy and complex. Implementing quick hacks will not help the situation. I migrated all my jail-servers to ezjail, which is in my opinion the right way for managing jails and which could be a good start for a jail-management system in freebsd. The author already posted a patch (which I unfortunately didn't actually had time to test) and he is willing to share his time and work with the freebsd system. It would be great for freebsd to not just have "jails" but to have "jails and everythink you need to easily manage them". best regards, philipp From owner-freebsd-rc@FreeBSD.ORG Sat Jul 22 18:03:42 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 E2AF716A4DE for ; Sat, 22 Jul 2006 18:03:42 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 3B71E43D55 for ; Sat, 22 Jul 2006 18:03:41 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 25018 invoked by uid 399); 22 Jul 2006 18:03:41 -0000 Received: from localhost (HELO ?192.168.0.3?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 22 Jul 2006 18:03:41 -0000 Message-ID: <44C2687A.3030102@FreeBSD.org> Date: Sat, 22 Jul 2006 11:03:38 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.4 (X11/20060604) MIME-Version: 1.0 To: Yar Tikhiy References: <20060722111449.GE10321@comp.chem.msu.su> In-Reply-To: <20060722111449.GE10321@comp.chem.msu.su> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: Generalising ${required_*} 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: Sat, 22 Jul 2006 18:03:43 -0000 Yar Tikhiy wrote: > Hi all, > > As of now, the ${required_*} variables work only in rc.d scripts > using the default start method. I've found that making ${required_*} > work in scripts that override the default start method can help us > to reduce code duplication in /etc/rc.d. In particular, I'd like > to introduce ${required_modules} because quite a few scripts have > to have a prestart method just to load a kernel module. > > Do you think such change would make sense? Thanks. > > Its prototype can be found in my P4 tree: > //depot/user/yar/hack/etc/... > (also available via www at http://perforce.freebsd.org) For those of us who are p4 impaired, can you give us a URL to view the changes you're proposing? Doug -- This .signature sanitized for your protection