The current implementation of FreeBSD 8.2’s /etc/rc.d/jail script does not allow for jail parameter specifications in rc.conf. Because of this it is impossible to start hierarchical jails automatically at boot. This patch solves that problem by allowing parameters to be set in rc.conf of the form:
jail_example_params=”children.max=3 another.param=somevalue”.
The only 2 things to look out for are that persist always gets set to 0, even if jail_example_params=”persist=1″ and the stdin & stderr of starting children jails is redirected to /dev/null.
The patch is located at:
http://pastebin.com/yFqVG2m9
http://pastie.org/1889937
http://yourpaste.net/8309