Re: Opensolaris SMF for FreeBSD

From: Oliver Brandmueller <ob_at_e-Gitt.NET>
Date: Tue, 30 Oct 2007 17:20:55 +0100
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! |
Received on Tue Oct 30 2007 - 15:20:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:20 UTC