
alanr at bell-labs
Oct 19, 1999, 7:13 AM
Post #3 of 3
(1078 views)
Permalink
|
Hi Folks, Maik Lehradt had had a problem with heartbeat not being completely SuSE compatible when it came to interfacing with external scripts. Volker Wiegand wrote: > > On Mon, 18 Oct 1999, Alan Robertson wrote: > > > Hi, > > > > I rely on running "resource-script-name status" to tell me if we own a > > resource. He has observed that /etc/rc.d/init.d/apache status never returns > > "running" > > > > What is SuSE supposed to do with the "status" requests to their scripts? > > > An excerpt from /sbin/init.d/apache follows: > > status) > echo -n "Checking for service httpd: " > checkproc /usr/sbin/httpd && echo OK || echo No process > ;; > > Hope this helps. > Yep. The code in the CVS repository now recognizes "OK" as a valid "I own the resource" response. It also gives OK in it's output when you do a "heartbeat status" request, and it's up, and No process when it's down. It continues to give running and stopped in these same outputs :-) This should fix Maik's problem. Thanks Volker, -- Alan Robertson alanr [at] bell-labs
|