From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 12 16:11:50 2008 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 321591065678 for ; Tue, 12 Aug 2008 16:11:50 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id D99CE8FC0C for ; Tue, 12 Aug 2008 16:11:49 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 1329C1B10EFB; Tue, 12 Aug 2008 18:11:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on malcho.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, J_CHICKENPOX_27 autolearn=no version=3.2.4 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 6DEE51B10EF7; Tue, 12 Aug 2008 18:11:45 +0200 (CEST) Message-ID: <48A1B641.6080407@moneybookers.com> Date: Tue, 12 Aug 2008 19:11:45 +0300 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.14 (X11/20080616) MIME-Version: 1.0 To: Mike Meyer References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <20080812115132.44b2e8f7@mbook.local> In-Reply-To: <20080812115132.44b2e8f7@mbook.local> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.93.3/8018/Tue Aug 12 10:36:31 2008 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org, Adrian Penisoara , wbentley@futurecis.com Subject: Re: If not the force, what should I use? (Was: FreeBSD in Business (was Re: Idea for FreeBSD)) 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: Tue, 12 Aug 2008 16:11:50 -0000 Mike Meyer wrote: > On Tue, 12 Aug 2008 17:10:22 +0200 "Adrian Penisoara" wrote: > >>>>>> While we're at it, I wish we could leverage the posibility for the >>>>>> admin to manually start the service at the CLI, no matter whether the >>>>>> service has been enabled or not -- that is the "_enable" keyword >>>>>> should have effect only in the bootup/automatic contexts. >>>>>> >>>>> Like keywords - forcestart forcerestart forcestop ?!?! >>>>> >>>> Yes, I am always reminded of that :). >>>> Well, to tell you the truth, I do not know of any other OS which >>>> requires prefixing with "force" the start/stop actions in order to act >>>> on the service at the command line, and personally I wish it weren't >>>> the case. >>>> >>> Well I bet you can find this in most linux distros that copy FreeBSD. What >>> about gentoo? >>> >> Umm, I have used Gentoo and I do not remember having to use >> "forcestart" at the command line... >> > > Ok, given that you 1) want to have both "XXXX this service if it's > part of our normal runtime" and "XXXX this service even if it's not > part of our normal runtime" as script commands, and that 2) XXXX > without a prefix gets the "if it's part of our normal runtime" > meaning, as we want the user to have to explicitly say "Yes, I know > this looks odd, but I know what I'm doing so do it anyway" to get the > "even if it's not part of our normal runtime" behavior, then what > would you have us use instead of "forceXXXX"? > > Personally, I think "start -f" or "start --force" might have been > better, but it's to late to fix such a minor thing. > I think the idea (behind not using force) is to implement something like in RH where there is a number of folders (for every run level) populated with links to the real rc scripts which are in /etc/init.d/ and when you type /etc/init.d/script start it will be started but the boot up rc.scripts will never do start on /etc/init.d/ itself only on the folder with links. It's not much better (or worse?) then the current system in freebsd, so I do not see why we should bother. -- Best Wishes, Stefan Lambrev ICQ# 24134177