Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Feb 2006 20:27:07 +0100
From:      "Simon L. Nielsen" <simon@FreeBSD.org>
To:        freebsd-rc@FreeBSD.org
Subject:   Problem with new localpkg startup in jails on 6.1
Message-ID:  <20060223192706.GA986@zaphod.nitro.dk>

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

--UugvWAfsgieZRqgk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hey,

I ran into a problem on a 6.1-BETA1 system running apache22 inside a
jail.  The symptom is that when starting the jail (via the jail rc.d
script) apache doesn't start even though apache22_enable=3D"YES" is set
in the jail rc.conf.  It starts fine if run the apache22 rc.d script
manually inside the jail.

The problem seems to be that in a jail there is no "mountcritlocal"
rc.d script (since it's marked nojail) so that messes up the new start
with the "early_late_divider".  When I set early_late_divider=3D"var" in
the jail rc.conf file everything works as expected.

I'm not really sure what the right fix is, though the hack is obviously:

if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ] then
	early_late_divider=3D"var"
fi

Or something like that.  I hope somebody else have a better solution
:-).

--=20
Simon L. Nielsen

--UugvWAfsgieZRqgk
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFD/gyKh9pcDSc1mlERAlAzAKDFNcgdfFgX59yDgFsE/OdjdjP84ACcDNj7
JJh+nJUFtrCEBODX6lrqem4=
=26w1
-----END PGP SIGNATURE-----

--UugvWAfsgieZRqgk--



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