blob: f3befad1279492a5a97385d25209998ceee3d782 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/files/heartbeat-init,v 1.5 2004/07/15 00:54:33 agriffis Exp $
HA_DIR=/etc/ha.d
depend() {
use logger
need net
}
# Run pre-startup script if it exists
RunStartStop() {
[ -f $HA_DIR/resource.d/startstop ] && $HA_DIR/resource.d/startstop "$@"
}
start() {
ebegin "Starting Heartbeat"
RunStartStop pre-start
/usr/lib/heartbeat/heartbeat 2>&1
ret=$?
/usr/lib/heartbeat/ResourceManager verifyallidle
RunStartStop post-start
eend $ret
}
stop() {
ebegin "Stopping Heartbeat"
/usr/lib/heartbeat/heartbeat -k &> /dev/null
eend $?
}
restart() {
/usr/lib/heartbeat/heartbeat -r
}
status() {
/usr/lib/heartbeat/heartbeat -s
}
|