From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 08:40:59 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 5606E1065671 for ; Wed, 13 Aug 2008 08:40:59 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 89E038FC12 for ; Wed, 13 Aug 2008 08:40:58 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman-macbook.lon.namesco.net (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m7D8euhf013840 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Aug 2008 09:40:57 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <48A29E15.5080303@unsane.co.uk> Date: Wed, 13 Aug 2008 09:40:53 +0100 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Jonathan McKeown References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <20080812115132.44b2e8f7@mbook.local> <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> In-Reply-To: <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org 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: Wed, 13 Aug 2008 08:40:59 -0000 Jonathan McKeown wrote: > On Tuesday 12 August 2008 17:51:32 Mike Meyer wrote: > >> On Tue, 12 Aug 2008 17:10:22 +0200 "Adrian Penisoara" >> > wrote: > >>> 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"? >> > > People keep talking about forcestart. > > Unless I'm misunderstanding things horribly, forcestart does exactly that - > forces the service to start regardless of any error that may occur. > > The better option for starting something as a one-off (not enabled in rc.conf) > is mnemonically named onestart - which only ignores the rcvar but still fails > on any other error. > > And yes, I like having onestart/onestop distinguished from start/stop. > > I believe it "forces" a start even though its not actually enabled (in rc.conf) rather than regardless of errors. If you really want a command line of onestart/onestop install the sysutils/bsdadminscripts port which has a script called rconestart and rconestop which do exactly that ;) Vince > Jonathan > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >