Hello,
I'd like to create jails using the
However, the manual at https://www.freebsd.org/doc/handbook/jails-build.html still uses the old format of using jail_ variables in
/etc/rc.conf.
I don't have any jail.conf on my system now, but I guess this is normal.
In the man page of the
Does someone know what the exec.clean option means?
Same question for the mount.devfs, what does it mean/do/is used for?
Also in the section for the "bar" jail, how come exec.start and exec.stop are empty? This jail never starts? And what is the mount.nodevfs option?
Thanks for your help.
I'd like to create jails using the
jail
built-in utility and the new /etc/jail.conf configuration file. However, the manual at https://www.freebsd.org/doc/handbook/jails-build.html still uses the old format of using jail_ variables in
/etc/rc.conf.
I don't have any jail.conf on my system now, but I guess this is normal.
In the man page of the
jail
command at https://www.freebsd.org/cgi/man.cgi?query=jail.conf&sektion=5&n=1 , they give the following example of a jail.conf, but they don't explain all the options used.
Code:
# Typical static defaults:
# Use the rc scripts to start and stop jails. Mount jail's /dev.
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
mount.devfs;
# Dynamic wildcard parameter:
# Base the path off the jail name.
path = "/var/jail/$name";
# A typical jail.
foo {
host.hostname = "foo.com";
ip4.addr = 10.1.1.1, 10.1.1.2, 10.1.1.3;
}
# This jail overrides the defaults defined above.
bar {
exec.start = '';
exec.stop = '';
path = /;
mount.nodevfs;
persist; // Required because there are no processes
}
Does someone know what the exec.clean option means?
Same question for the mount.devfs, what does it mean/do/is used for?
Also in the section for the "bar" jail, how come exec.start and exec.stop are empty? This jail never starts? And what is the mount.nodevfs option?
Thanks for your help.