From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 11:56:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D17D5106568E for ; Thu, 2 Oct 2008 11:56:27 +0000 (UTC) (envelope-from rock_on_the_web@comcen.com.au) Received: from angel.comcen.com.au (angel.comcen.com.au [203.23.236.69]) by mx1.freebsd.org (Postfix) with ESMTP id 903168FC0C for ; Thu, 2 Oct 2008 11:56:27 +0000 (UTC) (envelope-from rock_on_the_web@comcen.com.au) Received: from [192.168.0.185] (unknown [202.172.126.254]) by angel.comcen.com.au (Postfix) with ESMTP id A38215C2EE4B for ; Thu, 2 Oct 2008 21:52:59 +1000 (EST) From: Da Rock To: freebsd-questions@freebsd.org In-Reply-To: <200810020918.44161.jonathan+freebsd-questions@hst.org.za> References: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> <20081001105337.GA47338@owl.midgard.homeip.net> <1222905558.3927.1.camel@laptop1.herveybayaustralia.com.au> <200810020918.44161.jonathan+freebsd-questions@hst.org.za> Content-Type: text/plain Date: Thu, 02 Oct 2008 21:53:19 +1000 Message-Id: <1222948400.3927.12.camel@laptop1.herveybayaustralia.com.au> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-5.fc8) Content-Transfer-Encoding: 7bit X-comcen-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: A38215C2EE4B.097C9 X-comcen-MailScanner: Found to be clean X-comcen-MailScanner-SpamCheck: not spam, SpamAssassin (score=0.1, required 3, RDNS_NONE 0.10) X-comcen-MailScanner-From: rock_on_the_web@comcen.com.au X-Spam-Status: No Subject: Re: mysql rc script failure - correction: most installed rc scripts not running manually X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2008 11:56:27 -0000 On Thu, 2008-10-02 at 09:18 +0200, Jonathan McKeown wrote: > On Thursday 02 October 2008 01:59:18 Da Rock wrote: > > On Wed, 2008-10-01 at 12:53 +0200, Erik Trulsson wrote: > > > On Wed, Oct 01, 2008 at 08:39:47PM +1000, Da Rock wrote: > > > > > > > > So are you saying I can't start a script manually without enabling it > > > > in rc.conf? I was not under that impression... I thought it could be > > > > started manually for testing before setting it for automatic startup- > > > > based on my reading in the handbook and man pages. > > > > > > Yes, you can. Use forcestart/forcestop instead of start/stop when > > > running the rc script if you do not have it enabled in rc.conf. This is > > > documented in rc(8) (and is very easily overlooked if you don't know what > > > you are looking for.) > > > > Well thank you both for that piece of information, I had overlooked > > that. I did end up using it that way, but I was still unaware that it > > was mandatory. > > The problem with forcestart is that it ignores any errors that may occur. The > better option for a manual start is onestart, which simply bypasses the test > for the option being enabled but still fails on any other error (missing > dependencies, startup problems etc). > > Jonathan Well that might be more useful (and best practice)... Cheers for the heads up guys