From owner-freebsd-current@FreeBSD.ORG Tue Oct 30 16:20:56 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D47016A420 for ; Tue, 30 Oct 2007 16:20:56 +0000 (UTC) (envelope-from ob@gruft.de) Received: from obh.snafu.de (v6.gruft.de [IPv6:2001:1560:2342::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3D59B13C4C2 for ; Tue, 30 Oct 2007 16:20:56 +0000 (UTC) (envelope-from ob@gruft.de) Received: from ob by obh.snafu.de with local (Exim 4.68 (FreeBSD)) (envelope-from ) id 1Imtpn-000OIv-C3 for freebsd-current@freebsd.org; Tue, 30 Oct 2007 17:20:55 +0100 Date: Tue, 30 Oct 2007 17:20:55 +0100 From: Oliver Brandmueller To: freebsd-current@freebsd.org Message-ID: <20071030162055.GB54817@e-Gitt.NET> Mail-Followup-To: freebsd-current@freebsd.org References: <4726561D.7090805@cisco.com> <20071030064559.GL82157@redundancy.redundancy.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071030064559.GL82157@redundancy.redundancy.org> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: Oliver Brandmueller Subject: Re: Opensolaris SMF for FreeBSD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 16:20:56 -0000 Hi, On Mon, Oct 29, 2007 at 11:45:59PM -0700, David E. Thiel wrote: > On Mon, Oct 29, 2007 at 05:52:29PM -0400, Randall Stewart wrote: > > Anyone looked at porting SMF to FreeBSD? > > Not to my knowledge. What do you feel that SMF offers that currently > existing systems like rcNG or daemontools/runit do not? I haven't > found SMF to be more useful or functional than those solutions, and > it's certainly not as easy to use. It takes a little time (actually 2 hours should be fine) to get the idea and write the first few services. Although rcNG is quite good at it's job, SMF is able to offer quite some nice features, which rcNG can't offer. In fact SMF is not just start and stop scripts, but also watches if every service that is configured to run is running (not just if it started) and it knows about dependencies. For example SMF can do something like that: you configure apache depends on mysql. At system start everything is fine, but for whatever reason MySQL dies. SMF tries to restart MySQL, if this does not work it will also shutdown apache. (Please don't start a discussion if this example is useful, it's just to get the idea). Since SMF does not only start or stop services it needs support from the system level. It also highly different at all from doing things like setting a variable in rc.conf to austostart a service. While it surely would be a great thing, this changes a lot of things and I doubt this is just a simple port. If at all this could be a project for 8.0 and won't find it's way into a -STABLE branch. Greetings, Olli -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | WWW: http://the.addict.de/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! |