From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 06:11:49 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 2666E1065679 for ; Wed, 13 Aug 2008 06:11:49 +0000 (UTC) (envelope-from jonathan+freebsd-hackers@hst.org.za) Received: from hermes.hst.org.za (onix.hst.org.za [209.203.2.133]) by mx1.freebsd.org (Postfix) with ESMTP id 47AC18FC17 for ; Wed, 13 Aug 2008 06:11:47 +0000 (UTC) (envelope-from jonathan+freebsd-hackers@hst.org.za) Received: from sysadmin.hst.org.za (sysadmin.int.dbn.hst.org.za [10.1.1.20]) (authenticated bits=0) by hermes.hst.org.za (8.13.8/8.13.8) with ESMTP id m7D66nO8057353 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 13 Aug 2008 08:06:49 +0200 (SAST) (envelope-from jonathan+freebsd-hackers@hst.org.za) From: Jonathan McKeown Organization: Health Systems Trust To: freebsd-hackers@freebsd.org Date: Wed, 13 Aug 2008 08:13:56 +0200 User-Agent: KMail/1.9.7 References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <20080812115132.44b2e8f7@mbook.local> In-Reply-To: <20080812115132.44b2e8f7@mbook.local> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?utf-8?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l=3B=7E!4?= =?utf-8?q?2HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?utf-8?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i X-Spam-Score: -4.399 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.61 on 209.203.2.133 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 06:11:49 -0000 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. Jonathan