From owner-freebsd-rc@FreeBSD.ORG Wed Sep 2 14:36:53 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13A6E1065692 for ; Wed, 2 Sep 2009 14:36:53 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 9D7DF8FC20 for ; Wed, 2 Sep 2009 14:36:52 +0000 (UTC) Received: (qmail 16261 invoked by uid 399); 2 Sep 2009 14:36:48 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 2 Sep 2009 14:36:48 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4A9E82FB.5030202@FreeBSD.org> Date: Wed, 02 Sep 2009 07:36:43 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.23 (X11/20090822) MIME-Version: 1.0 To: bug-followup@FreeBSD.org, villa.alberto@gmail.com, freebsd-rc@freebsd.org X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: conf/138460: [patch] start local rc scripts in background X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2009 14:36:53 -0000 I object to this patch on at least 2 grounds. First the lack of BEFORE in a script does not mean that it is safe to background it. Some other script could easily depend on the service directly via REQUIRE, or (unfortunately) there could be indirect dependencies that are not properly labeled now because we've never needed to label them. Personally I actively discourage the use of BEFORE because I think it makes it harder to debug ordering problems although it is occasionally necessary. Second it is actually fairly common for locally installed scripts from the ports tree at least to depend on each other, and this is not a bug. The way to approach this would be to add a flag, probably in rc.conf, to indicate that it is safe to background a given service. Then rc.subr would have to grow support for this but that shouldn't be too hard. If you'd like to follow up in that regard you should send a message to freebsd-rc@freebsd.org. Unless someone else really thinks this is a good idea I plan to close this PR. Doug -- This .signature sanitized for your protection