From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 19 11:20:21 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2790A106564A; Tue, 19 Jun 2012 11:20:21 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-gh0-f182.google.com (mail-gh0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id A817E8FC14; Tue, 19 Jun 2012 11:20:20 +0000 (UTC) Received: by ghbz22 with SMTP id z22so5188480ghb.13 for ; Tue, 19 Jun 2012 04:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vbVdB0O565w7KH9UV6My3wazLmMxQ2ZyYDvUohzEv/M=; b=gueUgo/LBTdTyKjKDI3JxunmHIk3XgMwtDPHB02B2/OwFeQ5dz2lTHylBfPpZLMrH+ Cr07YN/rQEBUmwy9lc3ZKDXtffRZlA+VevAwxTdvzlFMKxrAH1jkeAq8d0ZM8M/a04Iw rFHUAO80A82jB5l4TiS7zjouJoBxffUvtUvCfOk5EUhM7Bri7tCfWSLTnKnqXAetLMlZ fy9TLkP2VqbnKe8zOmOxIV3/f6QjY77Z5xO0Vr9QqgoQHZtswZwEDtgI/jGu23b+9ZBG yYavT73FT9m5c7g0gXDmuDwVPLtgwdiwelxGKIkE9VuJywWRhPstW+9HWI8RNRDPcyen schw== MIME-Version: 1.0 Received: by 10.60.3.202 with SMTP id e10mr19416689oee.52.1340104819900; Tue, 19 Jun 2012 04:20:19 -0700 (PDT) Received: by 10.76.98.77 with HTTP; Tue, 19 Jun 2012 04:20:19 -0700 (PDT) In-Reply-To: <4FE0086F.4000507@gentoo.org> 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> Date: Tue, 19 Jun 2012 04:20:19 -0700 Message-ID: From: Garrett Cooper To: Richard Yao Content-Type: text/plain; charset=ISO-8859-1 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 11:20:21 -0000 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