Date: Sun, 20 Dec 2009 23:48:40 +0000 From: Andrew Hotlab <andrew.hotlab@hotmail.com> To: <bsam@ipt.ru>, <freebsd-questions@k-moeller.dk> Cc: freebsd-jail@freebsd.org Subject: RE: ezjail.flavour Message-ID: <BLU138-W33C8387B9FC0AE01066927F6830@phx.gbl> In-Reply-To: <21820472@ipt.ru> References: <8250ac3f0912160040q31750cd5oe6fe66eb4398b20b@mail.gmail.com>, <55743415@ipt.ru>, <8250ac3f0912162342p1a54d6bcpa6487b14831dce33@mail.gmail.com>, <21820472@ipt.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BLU138-W33C8387B9FC0AE01066927F6830>