Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2008 09:40:53 +0100
From:      Vincent Hoffman <vince@unsane.co.uk>
To:        Jonathan McKeown <jonathan+freebsd-hackers@hst.org.za>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: If not the force, what should I use? (Was: FreeBSD in Business (was Re: Idea for	FreeBSD))
Message-ID:  <48A29E15.5080303@unsane.co.uk>
In-Reply-To: <200808130813.56656.jonathan%2Bfreebsd-hackers@hst.org.za>
References:  <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com>	<20080812115132.44b2e8f7@mbook.local> <200808130813.56656.jonathan%2Bfreebsd-hackers@hst.org.za>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <ady@freebsd.ady.ro> 
>>     
> 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"
>   




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48A29E15.5080303>