11.11.2018 2:10, James Gritton wrote:
>>> Usually also jls is the command which will give information (compared to
>>> actions) on jails, would that not fit there?
>>
>> jls(8) currently does not parse /etc/jail.conf and I'd like to avoid
>> code duplication
>> between jail(8) and jls(8).
>
> It's probably time to work on combining the code base for those, and jexec(8)
> as well.
> There's been a desire to have jexec work with the jail's fib which is
> (currently) only in the config and not in the resulting jail itself.
Meantime, you can now use something like this:
fib=$(jail -e: | egrep '\<name=JAILNAME\>' | tr : $'\n' | awk -F=
'$1=="exec.fib" {print $2}')
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"