Patrick Lauer wrote: > 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. Yes, and that is by design.
>>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). Yes, use daemontools :-) Gentoo fellow chutz has almost complete system under daemontools and I am following his way. I hope to be able to provide a more general "all-in-/service" solutuion. > If I'm not mistaken a looooong time ago Gentoo used daemontools by default. Don't remember this, and I am using Gentoo for a long time... >>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. What else is there apart form daemontools, I know of any other.. Kalin. /also known as korokoro or tar/ -- |[ ~~~~~~~~~~~~~~~~~~~~~~ ]| +-> http://ThinRope.net/ <-+ |[ ______________________ ]| -- [email protected] mailing list
