Hi- I'm working on a generic status_of_proc() function to be provided by /lib/lsb/init-functions in the lsb-base package.
This bug is: * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=483285 This function also currently uses /bin/pidof, although eventually, I'd like at add some improved support for pidfiles as well. Having this functionality in a single library function is far more maintainable than scattering this sort of functionality across dozens/hundreds/thousands of init scripts. Although the patch hasn't been accepted in Debian's lsb-base yet, we have applied it and are working on it in Ubuntu's development tree (Intrepid) at the moment. We're tracking this as a single bug at this moment here: * https://bugs.edge.launchpad.net/ubuntu/+source/sysklogd/+bug/203169 I've modified a handful of service init scripts, including Samba to use this function. I don't know if it'll (yet) serve your heartbeat needs, but in my testing, it seems to work perform correctly, telling you if nmbd/smbd/winbindd are running or not. * http://launchpadlibrarian.net/15898919/samba.status.debdiff Once the status_of_proc() function is in lsb-base, I intend to push this patch to Debian's samba. -- :-Dustin Dustin Kirkland Ubuntu Server Developer Canonical, LTD [EMAIL PROTECTED] GPG: 1024D/83A61194
signature.asc
Description: This is a digitally signed message part