Date: Tue, 19 Jun 2012 04:20:19 -0700 From: Garrett Cooper <yanegomi@gmail.com> To: Richard Yao <ryao@gentoo.org> Cc: Doug Barton <dougb@freebsd.org>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, Vincent Hoffman <vince@unsane.co.uk>, Nathan Whitehorn <nwhitehorn@freebsd.org>, Outback Dingo <outbackdingo@gmail.com>, Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>, openrc@gentoo.org, =?ISO-8859-1?Q?Atte_Peltom=E4ki?= <atte.peltomaki@iki.fi> Subject: Re: Replacing rc(8) (Was: FreeBSD Boot Times) Message-ID: <CAGH67wR%2BzUNcQ_v3%2BQZUgVpc47DjoWaayzKjf2qeZStVYS5ToA@mail.gmail.com> In-Reply-To: <4FE0086F.4000507@gentoo.org> References: <20120615124849.GI96212@ass.kameli.org> <CAKYr3zxSOFOUghqao=3U_8sBNHwqce8AGK6mSFd6is11qzjS8w@mail.gmail.com> <20120618081140.GK96212@ass.kameli.org> <4FDF6177.5050608@unsane.co.uk> <4FDF6586.9060501@gentoo.org> <4FDFB166.2040709@FreeBSD.org> <alpine.BSF.2.00.1206190636100.1823@wojtek.tensor.gdynia.pl> <4FE0086F.4000507@gentoo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 18, 2012 at 10:04 PM, Richard Yao <ryao@gentoo.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wR%2BzUNcQ_v3%2BQZUgVpc47DjoWaayzKjf2qeZStVYS5ToA>