summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Jackson <iggy@gentoo.org>2003-09-24 06:35:54 +0000
committerBrian Jackson <iggy@gentoo.org>2003-09-24 06:35:54 +0000
commite77dfebd1ae3170905f3f50cc92c3a2918bf3c75 (patch)
tree5e142bee5791249ad1215e1ed6e28605e5dc9a67 /sys-cluster/heartbeat/files
parentonly works with libnet-1.1.0-r3 and later (diff)
downloadgentoo-2-e77dfebd1ae3170905f3f50cc92c3a2918bf3c75.tar.gz
gentoo-2-e77dfebd1ae3170905f3f50cc92c3a2918bf3c75.tar.bz2
gentoo-2-e77dfebd1ae3170905f3f50cc92c3a2918bf3c75.zip
init script and install location fixes
Diffstat (limited to 'sys-cluster/heartbeat/files')
-rw-r--r--sys-cluster/heartbeat/files/heartbeat-init23
1 files changed, 7 insertions, 16 deletions
diff --git a/sys-cluster/heartbeat/files/heartbeat-init b/sys-cluster/heartbeat/files/heartbeat-init
index 3eba095b245b..03289ad93e68 100644
--- a/sys-cluster/heartbeat/files/heartbeat-init
+++ b/sys-cluster/heartbeat/files/heartbeat-init
@@ -9,15 +9,6 @@ depend() {
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() {
@@ -26,29 +17,29 @@ RunStartStop() {
}
start() {
- checkconfig
ebegin "Starting Heartbeat"
RunStartStop pre-start
- /usr/bin/heartbeat 2>&1
- /usr/bin/ResourceManager verifyallidle
+ /usr/lib/heartbeat/heartbeat 2>&1
+ ret=$?
+ /usr/lib/heartbeat/ResourceManager verifyallidle
RunStartStop post-start
- eend $?
+ eend ret
}
stop() {
ebegin "Stopping Heartbeat"
- /usr/bin/heartbeat -k &> /dev/null
+ /usr/lib/heartbeat/heartbeat -k &> /dev/null
eend $?
}
restart() {
- heartbeat -r
+ /usr/lib/heartbeat/heartbeat -r
}
status() {
- heartbeat -s
+ /usr/lib/heartbeat/heartbeat -s
}