diff options
author | Brian Jackson <iggy@gentoo.org> | 2003-07-22 14:09:58 +0000 |
---|---|---|
committer | Brian Jackson <iggy@gentoo.org> | 2003-07-22 14:09:58 +0000 |
commit | 04e695bb6296251c416cc28e7a04007e3020d6f8 (patch) | |
tree | fa1ffa9c3858625adcf37e9dc7ae342218a79948 /sys-cluster/heartbeat/files | |
parent | added new init script to stable and beta ebuilds, version bumped beta ebuild (diff) | |
download | gentoo-2-04e695bb6296251c416cc28e7a04007e3020d6f8.tar.gz gentoo-2-04e695bb6296251c416cc28e7a04007e3020d6f8.tar.bz2 gentoo-2-04e695bb6296251c416cc28e7a04007e3020d6f8.zip |
added new init script to stable and beta ebuilds, version bumped beta ebuild
Diffstat (limited to 'sys-cluster/heartbeat/files')
-rw-r--r-- | sys-cluster/heartbeat/files/digest-heartbeat-1.0.3-r1 | 1 | ||||
-rw-r--r-- | sys-cluster/heartbeat/files/digest-heartbeat-1.1.2 | 1 | ||||
-rw-r--r-- | sys-cluster/heartbeat/files/heartbeat-init | 54 |
3 files changed, 56 insertions, 0 deletions
diff --git a/sys-cluster/heartbeat/files/digest-heartbeat-1.0.3-r1 b/sys-cluster/heartbeat/files/digest-heartbeat-1.0.3-r1 new file mode 100644 index 000000000000..507bd1a3d4fa --- /dev/null +++ b/sys-cluster/heartbeat/files/digest-heartbeat-1.0.3-r1 @@ -0,0 +1 @@ +MD5 0453cb64e008d53b84b7f58e522d68c3 heartbeat-1.0.3.tar.gz 1100360 diff --git a/sys-cluster/heartbeat/files/digest-heartbeat-1.1.2 b/sys-cluster/heartbeat/files/digest-heartbeat-1.1.2 new file mode 100644 index 000000000000..3d59bbd7adb7 --- /dev/null +++ b/sys-cluster/heartbeat/files/digest-heartbeat-1.1.2 @@ -0,0 +1 @@ +MD5 47c4c9979b95b179cb76c918fcf085b2 heartbeat-1.1.2.tar.gz 1149722 diff --git a/sys-cluster/heartbeat/files/heartbeat-init b/sys-cluster/heartbeat/files/heartbeat-init new file mode 100644 index 000000000000..3eba095b245b --- /dev/null +++ b/sys-cluster/heartbeat/files/heartbeat-init @@ -0,0 +1,54 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later + +HA_DIR=/etc/ha.d + +depend() { + use logger + need net +} + +checkconfig() { + [ ! -f /etc/ha.d/ha.cf ] && \ + eerror "You need a heartbeat config file" && return 1 + + if [ -f $HA_DIR/ipresources -a ! -f $HA_DIR/haresources ] ; then + cat $HA_DIR/ipresources >> $HA_DIR/haresources + fi +} + +# Run pre-startup script if it exists +RunStartStop() { + + [ -f $HA_DIR/resource.d/startstop ] && $HA_DIR/resource.d/startstop "$@" + +} + +start() { + checkconfig + ebegin "Starting Heartbeat" + + RunStartStop pre-start + + /usr/bin/heartbeat 2>&1 + /usr/bin/ResourceManager verifyallidle + + RunStartStop post-start + + eend $? +} + +stop() { + ebegin "Stopping Heartbeat" + /usr/bin/heartbeat -k &> /dev/null + eend $? +} + +restart() { + heartbeat -r +} + +status() { + heartbeat -s +} |