Subject: Re: rc.d and rcorder
To: None <>
From: Matthias Scheler <>
List: netbsd-users
Date: 04/23/2007 12:58:13
On Mon, Apr 23, 2007 at 11:14:35AM +1000, Malcolm Herbert wrote:
> Having recently been exposed to the Sun Solaris smf subsystem, are there
> any thoughts on extending NetBSD's rc system to provide monitoring of
> the started services? ie, who/what is responsible for monitoring the
> health of a particular service provided by the rc.d script?

There is no such service at the moment. For services without dependences
a "cronjob" like this will do:

* * * * *	(/etc/rc.d/foo status || /etc/rc.d/foo start) >/dev/null 2>&1

Not pretty but it works.

> Apart from the fact that the configuration files to manage it are way
> over-engineered, it looks pretty good ...

There is another (or used to be another?) problem. Solaris tries to
start up things in parallel but doesn't have all the dependences
properly defined. So depending on the speed of your machine, disks
and eventually the network various things might not work properly
if your system comes up.

	Kind regards

Matthias Scheler