diff -Nur heartbeat-2.0.5.orig/heartbeat/init.d/heartbeat.in heartbeat-2.0.5/heartbeat/init.d/heartbeat.in
--- heartbeat-2.0.5.orig/heartbeat/init.d/heartbeat.in 2006-04-14 21:25:33.000000000 +0200
+++ heartbeat-2.0.5/heartbeat/init.d/heartbeat.in 2006-04-27 20:32:29.000000000 +0200
@@ -13,7 +13,7 @@
# We don't hate anyone, and like for everyone to use
# our software, no matter what OS or distribution you're using.
#
-# chkconfig: 2345 @HB_INITSTARTPRI@ @HB_INITSTOPPRI@
+# chkconfig: - @HB_INITSTARTPRI@ @HB_INITSTOPPRI@
# description: Startup script high-availability services.
# processname: heartbeat
# pidfile: @localstatedir@/run/heartbeat.pid
@@ -391,12 +391,7 @@
StartHA
RC=$?
Echo
- if
- [ $RC -eq 0 ]
- then
- [ ! -d $LOCKDIR ] && mkdir -p $LOCKDIR
- touch $LOCKDIR/$SUBSYS
- fi
+ [ $RC -eq 0 ] && touch /var/lock/subsys/heartbeat
RunStartStop post-start $RC
;;
@@ -413,11 +408,7 @@
StopHA
RC=$?
Echo
- if
- [ $RC -eq 0 ]
- then
- rm -f $LOCKDIR/$SUBSYS
- fi
+ [ $RC -eq 0 ] && rm -f /var/lock/subsys/heartbeat
RunStartStop post-stop $RC
StopLogd
;;
diff -Nur heartbeat-2.0.5.orig/ldirectord/init.d/ldirectord heartbeat-2.0.5/ldirectord/init.d/ldirectord
--- heartbeat-2.0.5.orig/ldirectord/init.d/ldirectord 2005-10-17 14:49:21.000000000 +0200
+++ heartbeat-2.0.5/ldirectord/init.d/ldirectord 2006-04-27 20:33:35.000000000 +0200
@@ -2,7 +2,7 @@
#
# ldirectord Linux Director Daemon
#
-# chkconfig: 2345 92 40
+# chkconfig: - 92 40
# description: Start and stop ldirectord on non-heartbeat systems
# Using the config file /etc/ha.d/ldirectord.cf
#
@@ -59,9 +59,11 @@
case "$1" in
start)
action "Starting ldirectord" $DAEMON start
+ touch /var/lock/subsys/ldirectord
;;
stop)
action "Stopping ldirectord" $DAEMON stop
+ rm -f /var/lock/subsys/ldirectord
;;
restart)
action "Restarting ldirectord" $DAEMON restart