Subject: Re: rc.subr don't check rcvar YES except at boot/shutdown
To: Jeremy C. Reed <reed@reedmedia.net>
From: Geert Hendrickx <ghen@telenet.be>
List: tech-userlevel
Date: 02/15/2007 10:48:14
On Tue, Feb 13, 2007 at 12:46:02PM -0600, Jeremy C. Reed wrote:
> On Tue, 13 Feb 2007, Lubomir Sedlacik wrote:
> 
> > Index: rc.subr
> > ===================================================================
> > RCS file: /cvsroot/src/etc/rc.subr,v
> > retrieving revision 1.68
> > diff -u -p -r1.68 rc.subr
> > --- rc.subr	27 Jan 2007 14:30:26 -0000	1.68
> > +++ rc.subr	13 Feb 2007 15:22:37 -0000
> > @@ -464,6 +464,10 @@ run_rc_command()
> >  					#
> >  	if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" ]; then
> >  		if ! checkyesno ${rcvar}; then
> > +			if [ -z $_run_rc_script ]; then
> > +				warn "\$${rcvar} is not enabled - see ${rcvar_manpage}."
> > +				warn "Use '${name} onestart' if you really mean it."
> 
> s/onestart/one${rc_arg}/
> 
> So it won't suggest "onestart" when you want "status".

I guess it makes sense to make "status" work without the "one" prefix?

	Geert