From owner-freebsd-rc@FreeBSD.ORG Thu Feb 23 19:27:11 2006 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B7DA16A420 for ; Thu, 23 Feb 2006 19:27:11 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: from zaphod.nitro.dk (zarniwoop.nitro.dk [83.92.207.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BB8F43D48 for ; Thu, 23 Feb 2006 19:27:10 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id 6B7681141E; Thu, 23 Feb 2006 20:27:07 +0100 (CET) Date: Thu, 23 Feb 2006 20:27:07 +0100 From: "Simon L. Nielsen" To: freebsd-rc@FreeBSD.org Message-ID: <20060223192706.GA986@zaphod.nitro.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline User-Agent: Mutt/1.5.11 Cc: Subject: Problem with new localpkg startup in jails on 6.1 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 19:27:11 -0000 --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--