Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Dec 2005 10:59:26 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        Denis Shaposhnikov <dsh@vlink.ru>, freebsd-current@freebsd.org
Subject:   Re: troubles with /usr/local/etc/rc.d scripts in jail
Message-ID:  <43AAF78E.9030205@FreeBSD.org>
In-Reply-To: <20051222165553.GB13683@odin.ac.hmc.edu>
References:  <87hd91fm3n.fsf@neva.vlink.ru> <20051222165553.GB13683@odin.ac.hmc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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