From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 07:15:02 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 247D9106569C for ; Thu, 2 Oct 2008 07:15:02 +0000 (UTC) (envelope-from jonathan+freebsd-questions@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 4F2F58FC17 for ; Thu, 2 Oct 2008 07:15:00 +0000 (UTC) (envelope-from jonathan+freebsd-questions@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 m9276anP013979 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Oct 2008 09:06:36 +0200 (SAST) (envelope-from jonathan+freebsd-questions@hst.org.za) From: Jonathan McKeown Organization: Health Systems Trust To: freebsd-questions@freebsd.org Date: Thu, 2 Oct 2008 09:18:43 +0200 User-Agent: KMail/1.9.7 References: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> <20081001105337.GA47338@owl.midgard.homeip.net> <1222905558.3927.1.camel@laptop1.herveybayaustralia.com.au> In-Reply-To: <1222905558.3927.1.camel@laptop1.herveybayaustralia.com.au> 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.378 () ALL_TRUSTED,AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.61 on 209.203.2.133 Cc: Da Rock 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 07:15:02 -0000 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