Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Aug 2008 11:44:44 -0400
From:      Mike Meyer <mwm@mired.org>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        Allen <ioplex@gmail.com>, wbentley@futurecis.com, Mike Meyer <mwm-keyword-freebsdhackers2.e313df@mired.org>, Michael, hackers@freebsd.org
Subject:   Re: Idea for FreeBSD
Message-ID:  <20080807114444.234d1887@mbook.local>
In-Reply-To: <489A9344.3060306@freebsd.org>
References:  <b58b3fc7f4a07c9b6d55741e2ec25f47.squirrel@secure.futurecis.com> <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> <20080807010638.267d7790@bhuda.mired.org> <489A9344.3060306@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 06 Aug 2008 23:16:36 -0700 Tim Kientzle <kientzle@freebsd.org> wrote:

> > The Solaris smf tools provide some nice facilities: one is single
> > interface to start, stop, check and restart all the services on a
> > system. We pretty much have that ...
> > 
> > The other is a single interface to enable, disable and query the
> > status of all the services. All we really have is the last one...
> 
> Sounds like the only missing pieces, then, are standard
> ways to enable, disable, and configure services.  How about:
> 
>    sudo /etc/rc.d/ssh enable
>    sudo /etc/rc.d/ssh disable
>    sudo /etc/rc.d/ssh configure
> 
> That shouldn't be much of a stretch to implement, either.
> The first two just append entries to /etc/rc.conf.  The
> third opens an editor with a list of variables supported
> by this service and then appends the result to rc.conf.

Well, that might work, but could lead to unintended consequences if
you start missing settings from two different configure runs by
continually appending without deleting the old settings.

load_rc_config already sources /etc/rc.conf.d/"$_name". Working with
that file instead of /etc/rc.conf would seem to be a cleaner solution.

     <mike
-- 
Mike Meyer <mwm@mired.org>		http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



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