From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 19 13:19:39 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DAE71106566C; Tue, 19 Jun 2012 13:19:39 +0000 (UTC) (envelope-from ryao@gentoo.org) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id B0C7B8FC16; Tue, 19 Jun 2012 13:19:39 +0000 (UTC) Received: from [192.168.1.2] (pool-108-46-203-161.nycmny.fios.verizon.net [108.46.203.161]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: ryao) by smtp.gentoo.org (Postfix) with ESMTPSA id 6CE621B401A; Tue, 19 Jun 2012 13:19:37 +0000 (UTC) Message-ID: <4FE07C0C.3030207@gentoo.org> Date: Tue, 19 Jun 2012 09:18:04 -0400 From: Richard Yao User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120613 Thunderbird/10.0.5 MIME-Version: 1.0 To: Garrett Cooper References: <20120615124849.GI96212@ass.kameli.org> <20120618081140.GK96212@ass.kameli.org> <4FDF6177.5050608@unsane.co.uk> <4FDF6586.9060501@gentoo.org> <4FDFB166.2040709@FreeBSD.org> <4FE0086F.4000507@gentoo.org> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 19 Jun 2012 13:29:09 +0000 Cc: Doug Barton , "freebsd-hackers@freebsd.org" , Vincent Hoffman , Nathan Whitehorn , Outback Dingo , Wojciech Puchar , openrc@gentoo.org, =?ISO-8859-1?Q?Atte_Peltom=E4ki?= Subject: Re: Replacing rc(8) (Was: FreeBSD Boot Times) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2012 13:19:39 -0000 On 06/19/2012 07:20 AM, Garrett Cooper wrote: > On Mon, Jun 18, 2012 at 10:04 PM, Richard Yao wrote: >> On 06/19/2012 12:39 AM, Wojciech Puchar wrote: >>> - delay at rc.d scripts - there are some delays inserted. >>> >>>> The latter item is the only place where making changes to rc.d is going >>>> to help, and only then by parellelizing, and even then you are not >>>> really going to gain much since most things at boot time are serial. >>> >>> grep sleep /etc/rc.d/* usr/local/etc/rc.d/* >>> >>>> >>>> So while talk of how to get your favorite boot-time manager into FreeBSD >>>> may be entertaining, it's not likely to be productive, and almost >>> >>> it is unimportant as FreeBSD don't crash. >> >> OpenRC init scripts lack such delays. They store dependency information, >> which enables OpenRC to start them as soon as their dependencies are ready. > > Assuming that the hacks aren't working around other issues, like > routes not already being available for a certain period of time, e.g. > defaultroute, etc (which doesn't work 100% of the time, e.g. static > gateways and mounting NFS shares). > This is something that launchd, systemd, upstart, etc handle > (because they either have more knowledge of the system or it's been > coded into the files that execute the jobs/services), or alternatively > the services need to fail more gracefully (this is more difficult -- > but not impossible -- to code). Even OpenRC in gentoo doesn't handle > this, unless things have changed dramatically since I used Gentoo ~2 > years ago... > Thanks! > -Garrett It works for me. I suggest you try Gentoo FreeBSD in a jail: http://wiki.gentoo.org/wiki/Gentoo_FreeBSD#Howto_run_G.2FFBSD_in_vanilla_FreeBSD.27s_jail