On Thu, 2005-12-15 at 10:45 +0100, Andrea Carpani wrote:
> Hi all,
> 
> I'm looking around for alternatives to runscript style init scripts as I
> don't like very much default gentoo scripts. While I do like the
> depencencies stuff I still don't get why a "status" on a script gives
> "started" if the process died badly, or why I need to manually do a zap
> (can't restart do it for me?).
The init-scripts only save state and don't check if the service is doing what 
it is supposed to do.

> I think status should be implemented in each init script and should give
> the real status of the service be it a ps|grep or whatever.
That would make init-scripts much more complicated and buggy I think.
While that would be optimal I don't see it happening in the near future.
Also it is really hard to reliably detect a service in a "working"
state, so you'd only check "does any process named sshd run?" which is
also mildly buggy :-) etc. etc.
It's not as easy as it sounds.

> One more thing I'd like to see is a init controlled check on the death
> of some daemons (sort of what daemontools does).
If I'm not mistaken a looooong time ago Gentoo used daemontools by default.

> This is why I'm asking: has anyone here seriously tested/used initng new
> scripts? 
There are many different monitoring tools ... but none of them are easy
to integrate into baselayout.

Patrick
-- 
Stand still, and let the rest of the universe move

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to