[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ezjail] [PATCH] setting the jail 'name' for use in the 'jexec' command

On 23.06.12 08:28, Rudy (bulk) wrote:

> Jexec can accept either the JID or the jail 'Name'.  If you run 'jls -v'
> you see ezjail does not set the name and the default of the jail is the
> same as the JID.  Useless!
> Having a 'name' on the jail allows you to use a non-moving target for
> jexec commands.  For instance, you can restart you jails, not worry
> about the JID changing and can issue a command like this:
>  jexec foobar tcsh
> just add '_name' to your ezjail config, and patch your rc.d/ezjail file.

Is the "jail -m " switch backwards compatible? If it would fail silently
on old systems it would be acceptable. Also, why not just use the
_hostname variable?