From owner-freebsd-current@FreeBSD.ORG Thu Dec 22 19:39:41 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEFA316A41F for ; Thu, 22 Dec 2005 19:39:41 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id 1DA0743D5E for ; Thu, 22 Dec 2005 19:39:40 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 85713 invoked by uid 399); 22 Dec 2005 18:59:27 -0000 Received: from localhost (HELO ?192.168.1.101?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 22 Dec 2005 18:59:27 -0000 Message-ID: <43AAF78E.9030205@FreeBSD.org> Date: Thu, 22 Dec 2005 10:59:26 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (X11/20051203) MIME-Version: 1.0 To: Brooks Davis References: <87hd91fm3n.fsf@neva.vlink.ru> <20051222165553.GB13683@odin.ac.hmc.edu> In-Reply-To: <20051222165553.GB13683@odin.ac.hmc.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Denis Shaposhnikov , freebsd-current@freebsd.org Subject: Re: troubles with /usr/local/etc/rc.d scripts in jail X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 19:39:42 -0000 Brooks Davis wrote: > On Thu, Dec 22, 2005 at 01:43:40PM +0300, Denis Shaposhnikov wrote: >> Hi! >> >> Scripts with PROVIDE header don't running on jail's startup. Because >> early_late_divider="mountcritlocal" in /etc/defaults/rc.conf and >> mountcritlocal has nojail. This is one probleam. Thanks for bringing this to our attention, and sorry for the hassle. > I might make the early late divider NETWORKING. I agree with Brooks here. If that works for you, can you please let us know? I can add another section to rc.conf(5) for jails like we did for diskless boot. >> The second problem is "# REQUIRE: NETWORKING SERVERS" in a lots of >> scripts because they are running before ldconfig in this >> case. apache2.sh and mysql-server.sh for example. > > Said scripts are broken in most casees. They should be "# REQUIRE: > DAEMON". Very few things should start between SERVERS and DAEMON. > The system isn't really bootstrapped until DAEMON. Agreed. Since for all intents and purposes the REQUIRE/BEFORE lines were being ignored in these scripts previously, we already know that there are going to have to be some adjustments. This process is a necessary step to providing the functionality of having local scripts start in the base rcorder, so we just have to buckle down and fix them. Doug -- This .signature sanitized for your protection