Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Oct 2008 09:18:43 +0200
From:      Jonathan McKeown <jonathan+freebsd-questions@hst.org.za>
To:        freebsd-questions@freebsd.org
Cc:        Da Rock <rock_on_the_web@comcen.com.au>
Subject:   Re: mysql rc script failure - correction: most installed rc scripts not running manually
Message-ID:  <200810020918.44161.jonathan%2Bfreebsd-questions@hst.org.za>
In-Reply-To: <1222905558.3927.1.camel@laptop1.herveybayaustralia.com.au>
References:  <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> <20081001105337.GA47338@owl.midgard.homeip.net> <1222905558.3927.1.camel@laptop1.herveybayaustralia.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810020918.44161.jonathan%2Bfreebsd-questions>