Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Aug 2008 22:18:18 +0200
From:      Lars Engels <lars.engels@0x20.net>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        Michael B Allen <ioplex@gmail.com>, Mike Meyer <mwm-keyword-freebsdhackers2.e313df@mired.org>, wbentley@futurecis.com, hackers@freebsd.org
Subject:   Re: Idea for FreeBSD
Message-ID:  <20080807201818.GS56464@e.0x20.net>
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

--1BKOZKwX7DAU5odC
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Aug 06, 2008 at 11:16:36PM -0700, Tim Kientzle 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...
>=20
> Sounds like the only missing pieces, then, are standard
> ways to enable, disable, and configure services.  How about:
>=20
>   sudo /etc/rc.d/ssh enable
>   sudo /etc/rc.d/ssh disable
>   sudo /etc/rc.d/ssh configure
>=20
> 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.

Pretty much the same came to my mind some weeks ago.
I'd propose a "rcadm" command like Solaris' svcadm, so you do not need
to care about if the rc script is in /etc/rc.d or in
/usr/local/etc/rc.d.
And it would be safer to check if the service is already listed in
rc.conf, so it doesn't get appended every time  you enable a service.

--1BKOZKwX7DAU5odC
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkibWIoACgkQKc512sD3afgyCACgosC0rwzA0195Ir9aU+8pWDqC
fgkAoK93sY8oWmEu4yIf5pjdp1PF8OER
=OyVn
-----END PGP SIGNATURE-----

--1BKOZKwX7DAU5odC--



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