Date: Tue, 03 May 2011 23:07:19 +0200 From: Uffe Jakobsen <uffe@uffe.org> To: freebsd-jail@freebsd.org Subject: Re: jexec by jname Message-ID: <4DC06E87.3030109@uffe.org> In-Reply-To: <20110326190947.19ff58f9@r500.local> References: <BANLkTikjvN2JsP2Q7MZmT_s9xXWchUBCSQ@mail.gmail.com> <20110326190947.19ff58f9@r500.local>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2011-03-26 19:09, Fabian Keil wrote: > Subbsd<subbsd@gmail.com> wrote: > >> I see wrong information at http://wiki.freebsd.org/Jails >> "jexec - selection by jail name, 2008-05-26 commited to 8-CURRENT" >> >> I do not see something like "jexec -n<name>" in RELENG_8 or >> CURRENT. This is fake ;) ? > > Quoting jexec(8): > > | DESCRIPTION > | The jexec utility executes command inside the jail identified by its jid > | or name. > > The -n option is still there, but silently ignored. > > Note, however, that the jail name jexec(8) is talking > about is not the same as the host name. > > By default the jail id is used as jail name: > > fk@r500 ~ $jls -n name jid > name=1 jid=1 > name=2 jid=2 > name=3 jid=3 > > So while jexec allows you to use the jail "name", it seems > to lack the "accept hostname or ip-number" feature mentioned > in the wiki, unless a non default jail name is used. > > Fabian FYI: I've submitted a patch that would enable configurable jail_names from the (rc.d) rc.conf But it is still pending: http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/150599 /Uffe
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DC06E87.3030109>