Il giorno ven, 16-12-2005 alle 01:22 +0900, Kalin KOZHUHAROV ha scritto: > > >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 know. I miss, though, the possibility to create my own "status" function that at least lets me know if the process is there. I haven't been able to override the "status" cleanly. > >>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. What I was thinking was something like other init systems do: each script can have a "status" overridden at init.d script level that can do checks: wether this is a single ps|grep or something more complex it's a packager's choice. > >>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 :-) I'll give it a shot asap. > >>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.. There are initng scripts found here. http://initng.thinktux.net/index.php/Main_Page Maybe someone has tested them? -- Andrea Carpani <[EMAIL PROTECTED]> -- [email protected] mailing list
