From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 31 17:39:27 2007 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 474E216A419 for ; Fri, 31 Aug 2007 17:39:27 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 19D5313C478 for ; Fri, 31 Aug 2007 17:39:26 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 9F1D961A431 for ; Fri, 31 Aug 2007 10:18:41 -0700 (PDT) Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03290-07 for ; Fri, 31 Aug 2007 10:18:40 -0700 (PDT) Received: from [10.0.0.40] (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id BEC26619CFB for ; Fri, 31 Aug 2007 10:18:40 -0700 (PDT) Message-ID: <46D84D70.50406@miralink.com> Date: Fri, 31 Aug 2007 10:18:40 -0700 From: Sean Bruno User-Agent: Thunderbird 1.5.0.12 (X11/20070719) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <46D84609.3080409@miralink.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Fri Aug 31 10:18:41 2007 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 46d84d71199141763113579 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.499 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.499 X-Spam-Level: Subject: Re: rc functions don't allow processes to shutdown 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: Fri, 31 Aug 2007 17:39:27 -0000 Doug Barton wrote: > On Fri, 31 Aug 2007, Sean Bruno wrote: > >> I noticed that if rc.conf has ntpd_enable="NO", an invocation of >> /etc/rc.d/ntpd stop won't actually shut down ntpd. I checked a >> couple of other processes(like net-snmp) and noted the same behavior. > > FYI, there is a list for discussing rc.d issues, freebsd-rc@. The > current behavior is by design, and I don't think that changing it is a > good idea this late in the game. > Ah, as usual, I picked the wrong list. I'll take design issues there. > Assuming that lack of an affirmative _enable variable is a constant, > the only way that a service can be started is with either onestart or > forcestart. The symmetry here would be to stop it the same way. > This may be symmetrical, but I question whether or not the 'correct' behavior is symmetrical. I don't see the benefit to the end user in this implementation, e.g. trying to disable a running service. If a new-ish admin edits the rc.conf prior to shutting down the service, there could be some consternation. However, my entire idea of how to shut down a process in FreeBSD may be flawed, and I may be the one who is in need of a 'design change'. :) Sean