ha 0.4.9e eeeek I seemed to have screwed up!!!!
Alan Robertson
alanr@unix.sh
Mon, 14 Oct 2002 14:55:03 -0600
Alan Robertson wrote:
> Kevin Dwyer wrote:
>
>> Sam Ganesan wrote:
>>
>>>
>>> I guess no FIFOs there??
>>>
>>> how do i fix it??
>>
>>
>>
>> These commands should set you up:
>>
>> mkfifo /var/lib/heartbeat/ipfail.req
>> mkfifo /var/lib/heartbeat/ipfail.rsp
>> chmod 600 /var/lib/heartbeat/ipfail.*
>> chown hacluster:haclient /var/lib/heartbeat/ipfail.*
>>
>>
>> Alan-
>> Maybe this procedure should be added to the make install, just as the
>> ccm files are created. I know at least one other person may have
>> suffered from not realizing there were more steps to ipfail.
>
>
> In general, feel free to send patches ;-)
>
> I'll fix this one.
Here's my first attempt...
Index: contrib/ipfail/Makefile.am
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/contrib/ipfail/Makefile.am,v
retrieving revision 1.2
diff -u -r1.2 Makefile.am
--- contrib/ipfail/Makefile.am 11 Sep 2002 06:17:08 -0000 1.2
+++ contrib/ipfail/Makefile.am 14 Oct 2002 20:54:16 -0000
@@ -27,6 +27,13 @@
halibdir = $(libdir)/@HEARTBEATPKG@
+havarlibdir = $(localstatedir)/lib/@HEARTBEATPKG@
+# fifos with path
+apigid = @APIGID@
+ipfailuid = @CCMUID@
+ipfreqfifo = $(havarlibdir)/api/ipfail.req
+ipfresfifo = $(havarlibdir)/api/ipfail.rsp
+
halib_PROGRAMS = ipfail
## SOURCES
@@ -34,3 +41,18 @@
ipfail_LDADD =$(top_builddir)/replace/libreplace.la \
$(top_builddir)/lib/clplumbing/libplumb.la \
$(top_builddir)/heartbeat/libhbclient.la $(GLIBLIB)
+
+
+## additional Makefile targets
+# additional installations not covered normally
+install-exec-local:
+ test -p $(DESTDIR)$(ipfreqfifo) || mkfifo -m 200 $(DESTDIR)$(ipfreqfifo)
+ test -p $(DESTDIR)$(ipfresfifo) || mkfifo -m 600 $(DESTDIR)$(ipfresfifo)
+ -chgrp $(apigid) $(DESTDIR)/$(ipfreqfifo)
+ -chgrp $(apigid) $(DESTDIR)/$(ipfresfifo)
+ -chown $(ipfailuid) $(DESTDIR)/$(ipfreqfifo)
+ -chown $(ipfailuid) $(DESTDIR)/$(ipfresfifo)
+
+uninstall-local:
+ -test -p $(DESTDIR)$(ipfreqfifo) && rm $(DESTDIR)$(ipfreqfifo)
+ -test -p $(DESTDIR)$(ipfresfifo) && rm $(DESTDIR)$(ipfresfifo)
Index: heartbeat.spec.in
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/heartbeat.spec.in,v
retrieving revision 1.40
diff -u -r1.40 heartbeat.spec.in
--- heartbeat.spec.in 14 Oct 2002 11:32:41 -0000 1.40
+++ heartbeat.spec.in 14 Oct 2002 20:54:26 -0000
@@ -495,6 +495,8 @@
%attr (1770, root, @APIGROUP@) @localstatedir@/lib/@HEARTBEATPKG@/casual
%attr (200, @CCMUSER@, @APIGROUP@)
@localstatedir@/lib/@HEARTBEATPKG@/api/ccm.req
%attr (600, @CCMUSER@, @APIGROUP@)
@localstatedir@/lib/@HEARTBEATPKG@/api/ccm.rsp
+%attr (200, @CCMUSER@, @APIGROUP@)
@localstatedir@/lib/@HEARTBEATPKG@/api/ipfail.req
+%attr (600, @CCMUSER@, @APIGROUP@)
@localstatedir@/lib/@HEARTBEATPKG@/api/ipfail.rsp
%doc @mandir@/man8/heartbeat.8*
%doc doc/AUTHORS
%doc doc/COPYING
----------------------------------------
-- Alan Robertson
alanr@unix.sh