From owner-freebsd-current@FreeBSD.ORG Sat Jul 19 05:01:40 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7DEC1065671 for ; Sat, 19 Jul 2008 05:01:40 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.freebsd.org (Postfix) with ESMTP id 8DFFF8FC08 for ; Sat, 19 Jul 2008 05:01:40 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 27239 invoked by uid 399); 19 Jul 2008 05:01:39 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 19 Jul 2008 05:01:39 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <48817532.4060704@FreeBSD.org> Date: Fri, 18 Jul 2008 22:01:38 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.14 (X11/20080606) MIME-Version: 1.0 To: Stefan Bethke References: <200807172056.08835.naylor.b.david@gmail.com> <487FCA89.2010308@FreeBSD.org> <20080718083725.97823be0tg13fn6s@webmail.leidinger.net> <20080718071806.GV62764@server.vk2pj.dyndns.org> <525E8FF6-307E-4DC9-B730-21435A2C2D2C@lassitu.de> In-Reply-To: <525E8FF6-307E-4DC9-B730-21435A2C2D2C@lassitu.de> X-Enigmail-Version: 0.95.6 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, lth@freebsd.org Subject: Re: rc improvements (wanted?) 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: Sat, 19 Jul 2008 05:01:41 -0000 Stefan Bethke wrote: > Just as a simple counter-example: it's very annoying when a startup > script for a non-essential service is blocking startup for an essential > one. (A Smokeping config of mine takes about 5 minutes to finish, and > it's blocking sshd, as I found out the other day when I had to reboot > the server.) I took at look at that rc.d script, and it seems to have duplicated the same old script that a lot of ports scripts did before they were included in the base rcorder (so the before/require stuff didn't matter). Specifically it has: # REQUIRE: DAEMON # BEFORE: LOGIN where it probably should just have REQUIRE: LOGIN. That would generally place it after sshd (although obviously it would miss some traffic that happens before it's started up). Of course, you can always change the order yourself (e.g., add sshd to the REQUIRE line), and/or investigate a way to get smokeping to do its startup process in the background and yield to the next script in line. I've cc'ed lth so that hopefully he can give this stuff some thought. > Also see the repeated annoyances caused by dhclient on this > list and elsewhere. Well, two groups of categories that I think would be useful are "depends on the network" and "does not depend on the network" which would help deal with the delay you're talking about here. The problems with that ensue when you start talking about NFS-mounted /usr/local, diskless boot, etc. Doug -- This .signature sanitized for your protection