Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Sep 2016 13:41:27 +0200
From:      Wout =?ISO-8859-1?Q?Decr=E9?= <wout@canodus.be>
To:        freebsd-questions@freebsd.org
Cc:        ricky1252@hotmail.com
Subject:   Re: Jail not starting at Boot
Message-ID:  <1472989287.1637.9.camel@canodus.be>
In-Reply-To: <SNT146-W5149D2CA9F8D9792C6F1A0A16C0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

I had a similar problem, not all jails started at boot. After a lot of
rebooting I found a solution.

I use exec.prestart to nullfs mount /usr/ports to {jail}/usr/ports like
so:

exec.prestart = "/sbin/mount -t nullfs -o
ro /usr/ports /usr/jails/$name/usr/ports";

The jail init script will not start a jail if this exec.prestart command
fails.

After adding nullfs_load="YES" to /boot/loader.conf (so the module is
loaded early in boot), no more problems.

Hope this will help you too.

Best regards

Wout




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1472989287.1637.9.camel>