From owner-freebsd-rc@FreeBSD.ORG Thu Apr 15 08:58:17 2010 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 D2EE7106566B for ; Thu, 15 Apr 2010 08:58:17 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id 945218FC16 for ; Thu, 15 Apr 2010 08:58:17 +0000 (UTC) Received: from mobileKamikaze.norad (unknown [88.130.197.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id EC20B8A1AE6 for ; Thu, 15 Apr 2010 10:58:15 +0200 (CEST) Message-ID: <4BC6D526.2090904@bsdforen.de> Date: Thu, 15 Apr 2010 10:58:14 +0200 From: Dominic Fandrey User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-GB; rv:1.9.1.9) Gecko/20100331 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-rc@FreeBSD.org References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Trivial PR, fix shutdown of rc services started with onestart (fwd) 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: Thu, 15 Apr 2010 08:58:17 -0000 I'm replying to http://docs.freebsd.org/cgi/mid.cgi?4BC6CE12.7020305 which was not CCed to me. I'm not on freebsd-rc, so I'd prefer to be. From: Matthew Seaman > On 14/04/2010 22:06:20, Dominic Fandrey wrote: >> I'm running with variations of this for more than a year and not once >> have I been able to detect unwanted side effects. >> However, I can assure you it has spared me a lot of problems. > > There were some rc scrips in /etc/rc.d that always did the 'start' > action no matter what argument they were called with. I think all of > those have been fixed to recognize a 'stop' argument now, but whether > this also applies to a 'onestop' I can't tell. /etc/rc.d/tmp is an > example -- notice that the script action isn't encapsulated as a > tmp_start function. The "one" is dealt with by rc.subr, it's not only not necessary to deal with this in the rc-scripts, I think they're not even supposed to know how they were called. Of course they can still find out if they read $1 instead of relying on the rc-magic. I can imagine no legitimate use case for this, though. -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?