Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2013 22:42:47 +0200
From:      David Demelier <demelier.david@gmail.com>
To:        Joe <fbsd8@a1poweruser.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: /etc/jail.conf for automatically started jails listed in /etc/rc.conf
Message-ID:  <1990818.dWVxsxnVR3@melon>
In-Reply-To: <51914DC1.1050207@a1poweruser.com>
References:  <11698066.Kggl9cS1ZD@melon> <51914DC1.1050207@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Le lundi 13 mai 2013 16:32:01 Joe a =E9crit :
> David Demelier wrote:
> > Hello dear,
> >=20
> > Does jail.conf(5) does not work for jails listed in the rc.conf ?
> >=20
> > I've added in /etc/jail.conf:
> >=20
> > foo {
> >=20
> >     hostname=3DFoo;
> >     path=3D/jails/foo;
> >     allow.sysvipc=3D1;
> >=20
> > }
> >=20
> > And in /etc/rc.conf only foo in the jail_list parameter, but when I=
 try to
> > start the jail it still complain about missing hostname.
> >=20
> > Regards,
>=20
> There are 2 methods for configuring jails.
>=20
> The legacy method which you put the jail config statements in the hos=
ts
> /etc/rc.conf file and start and stop control is done by the hosts
> /etc/rc.d/jail script at boot time.
>=20
> The jail(8) method which has it's own jail config statements in the
> hosts /etc/jail.conf file and uses the jail(8) program for starting a=
nd
> stopping. You can create a jail.conf file for each jail(8) and start =
it
> using  jail -c -f "/etc/jailname.jail.conf" and stop by issuing
> jail -f "/etc/jailname.jail.conf" -r jailname
>=20
> You can not mix the 2 methods.

My real problem is that I wanted to add allow.sysvipc only for *one* ja=
il and=20
I can't find a real solution by jail_* flags in /etc/rc.conf

There is jail_allow_sysvipc but it enable it for all jails.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1990818.dWVxsxnVR3>