From owner-freebsd-jail@FreeBSD.ORG Mon Dec 21 00:00:41 2009 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA9851065670 for ; Mon, 21 Dec 2009 00:00:41 +0000 (UTC) (envelope-from andrew.hotlab@hotmail.com) Received: from blu0-omc3-s38.blu0.hotmail.com (blu0-omc3-s38.blu0.hotmail.com [65.55.116.113]) by mx1.freebsd.org (Postfix) with ESMTP id A49528FC18 for ; Mon, 21 Dec 2009 00:00:41 +0000 (UTC) Received: from BLU138-W33 ([65.55.116.74]) by blu0-omc3-s38.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 20 Dec 2009 15:48:40 -0800 Message-ID: X-Originating-IP: [81.174.54.98] From: Andrew Hotlab To: , Date: Sun, 20 Dec 2009 23:48:40 +0000 Importance: Normal In-Reply-To: <21820472@ipt.ru> References: <8250ac3f0912160040q31750cd5oe6fe66eb4398b20b@mail.gmail.com>, <55743415@ipt.ru>, <8250ac3f0912162342p1a54d6bcpa6487b14831dce33@mail.gmail.com>, <21820472@ipt.ru> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 20 Dec 2009 23:48:40.0076 (UTC) FILETIME=[F49E94C0:01CA81CE] Cc: freebsd-jail@freebsd.org Subject: RE: ezjail.flavour X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2009 00:00:41 -0000 It seems that FreeBSD 8 does not like to start rc scripts named *.sh. Here = is a little patch for the script ezjail-admin which seems to fix the problem. --- ezjail-admin 2009/12/20 23:28:09 1.1+++ ezjail-admin 2009/12/20 23:28:2= 6 @@ -550=2C7 +550=2C7 @@ =A0=A0 =A0 # If a config is found=2C make it auto run on jails startup =A0=A0 =A0 if [ -f "${ezjail_rootdir}/ezjail.flavour" ]=3B then - =A0 =A0 =A0ln -s /ezjail.flavour "${ezjail_rootdir}/etc/rc.d/ezjail-confi= g.sh" + =A0 =A0 =A0ln -s /ezjail.flavour "${ezjail_rootdir}/etc/rc.d/ezjail-confi= g" =A0=A0 =A0 =A0 chmod 0700 "${ezjail_rootdir}/ezjail.flavour" =A0=A0 =A0 =A0 echo "Note: Shell scripts installed=2C flavourizing on jails= first startup." =A0=A0 =A0 fi I think ezjail urgently needs some updates in order not to remain behind=A0= the new features in FreeBSD which can dramatically improve the jail system usage=A0= (vnet=2C ZFS=2C multiple FIB support=2C etc). =A0I'm not a shell script expert=2C bu= t my everyday work gives me the chance to have a pretty high-level view on what is needed= . =A0I'll be glad to be contacted off-list by someone with some shell scripting skills a= nd a few hours of spare time to spend with me on this very useful tool. Andrew ----------------------------------------> To: freebsd-questions@k-moeller.d= k > From: bsam@ipt.ru > Date: Thu=2C 17 Dec 2009 11:35:51 +0300 > CC: freebsd-jail@freebsd.org > Subject: Re: ezjail.flavour > > Kalle M=F8ller writes: > >>> I've got the same behaviour. Seems that the script ezjail.flavour >>> is not executed because it uses old rc rules and so it is ingored >>> at startup. >> What are the new rc rules=2C because it looks fair simple to correct=2C = went >> through the code yesterday. > > Well=2C I'm not an rc guru. But seems that RC(8) may be a good start. > > -- > WBR=2C bsam > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe=2C send any mail to "freebsd-jail-unsubscribe@freebsd.org" =20 _________________________________________________________________ Windows Live Hotmail: Your friends can get your Facebook updates=2C right f= rom Hotmail=AE. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/so= cial-network-basics.aspx?ocid=3DPID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092= 009=