combining rc.conf and jail.conf

Miroslav Lachman 000.fbsd at quip.cz
Thu Jul 25 23:30:21 UTC 2013


Marek Rudnicki wrote:
> Hello
>
> I have a jail configuration in /etc/jail.conf and can start it with:
>
> # jail -c myjail
>
>
> However, I would like to start it automatically at system boot, e.g. by
> using /etc/rc.conf .  What's the best way to do that?
>
> And generally, is it the recommended way to configure jail in
> /etc/jail.conf and just start them with /etc/rc.conf ?
>
> Cheers
> Marek
>
> PS I'm running FreeBSD 9.1-RELEASE-p4

You can install sysutils/jail2 - it is new rc script for starting jails 
configured in /etc/jail.conf.
Original /etc/rc.d/jail cannot start jails from jail.conf

Beware of bug in handling of devfs rulesets in FreeBSD 9.1 - see archive 
of this list. (I think it is fixed in stable and 9.2)

Miroslav Lachman


More information about the freebsd-jail mailing list