1 Summary: Heartbeat - subsystem for High-Availability Linux
2 Summary(pl): Podsystem heartbeat dla systemów o podwy¿szonej niezawodno¶ci
7 URL: http://linux-ha.org/
8 Group: Applications/System
9 Source0: http://linux-ha.org/download/%{name}-%{version}.tar.gz
10 Patch0: %{name}.dirty.time.h.patch
11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 Prereq: /sbin/chkconfig
15 Prereq: /usr/bin/getgid
16 Prereq: /usr/sbin/groupadd
17 Prereq: /usr/sbin/groupdel
20 heartbeat is a basic heartbeat subsystem for Linux-HA. It will run
21 scripts at initialization, and when machines go up or down. This
22 version will also perform IP address takeover using gratuitous ARPs.
23 It works correctly for a 2-node configuration, and is extensible to
24 larger configurations.
26 It implements the following kinds of heartbeats:
27 - Bidirectional Serial Rings ("raw" serial ports)
30 heartbeat jest podstawowym podsystemem dla systemów o podwy¿szonej
31 dostêpno¶ci budowanych w oparciu o Linuxa. Zajmuje siê uruchamianiem
32 skryptów podczas startu i zamykania systemu. Ta wersja pakietu pozwala
33 na przejmowanie adresów IP. Oprogramowanie dzia³a poprawnie dla
34 konfiguracji sk³adaj±cej siê z 2 hostów, mo¿na je równie¿ stosowaæ do
35 bardziej skomplikowanych konfiguracji.
38 #Summary: Provides an interface to Shoot The Other Node In The Head
47 sed -e 's/MAKE=gmake/MAKE=make/g' < Makefile > aqq
50 sed -e 's/lynx/links/' > aqq < Makefile
56 rm -rf $RPM_BUILD_ROOT
57 RPM_BUILD=yes BUILD_ROOT=$RPM_BUILD_ROOT %{__make} install
59 cd $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d
61 ln -sf %{_sbindir}/ldirectord ldirectord
64 TEMPL=$RPM_BUILD_ROOT/var/adm/fillup-templates
70 install rc.config.heartbeat $TEMPL
73 %defattr(644,root,root,755)
75 %dir %{_sysconfdir}/ha.d
76 %{_sysconfdir}/ha.d/harc
77 %{_sysconfdir}/ha.d/shellfuncs
78 %{_sysconfdir}/ha.d/rc.d
79 %{_sysconfdir}/ha.d/README.config
80 %{_sysconfdir}/ha.d/conf
82 %{_libdir}/libhbclient.so
83 %{_libdir}/libhbclient.a
84 %{_sysconfdir}/ha.d/resource.d/
85 %{_sysconfdir}/init.d/heartbeat
86 /etc/logrotate.d/heartbeat
87 /var/adm/fillup-templates/rc.config.heartbeat
88 %dir /var/lib/heartbeat
89 %attr (600, root, root) /var/lib/heartbeat/fifo
90 %attr (750, root, haclient) /var/lib/heartbeat/api
91 %attr (620, root, haclient) /var/lib/heartbeat/register
92 %attr (1770, root, haclient) /var/lib/heartbeat/casual
93 %{_mandir}/man8/heartbeat.8*
97 rm -rf $RPM_BUILD_ROOT
100 if [ -n "`/usr/bin/getgid haclient`" ]; then
101 if [ "`/usr/bin/getgid haclient`" != "60" ]; then
102 echo "Warning: group haclient haven't gid=60. Correct this before installing heartbeat" 1>&2
106 /usr/sbin/groupadd -g 60 -r
110 /sbin/chkconfig --add heartbeat
113 Uninstall_PPP_hack() {
114 file2hack=etc/ppp/ip-up.local
115 echo "NOTE: Restoring /$file2hack"
117 ed -s $file2hack <<-!EOF 2>/dev/null
124 if [ "$1" = "0" ]; then
125 /sbin/chkconfig --del heartbeat
126 if [ ! -x etc/ppp/ip-up.heart ]; then
132 if [ "$1" = "0" ]; then
133 /usr/sbin/groupdel haclient 2>/dev/null