Package:  heartbeat
Version:  2.1.3-1
Tags:     patch
User:     [EMAIL PROTECTED]
Usertags: incorrect-dependency

When testing dependency based boot sequencing, I discovered what I
believe is a bug in the init.d/heartbeta script.  It need a mounted
/usr/, but do not depend on $remote_fs which is the dependency
required for scripts needing /usr/.  It uses the default params when
calling update-rc.d, but do not list the equivalent runlevels in the
LSB header.

This patch should solve these issues.

I notice the package depend on openhpid.  If heartbeat need openhpid
to start before it in the boot, it should list it in required-start or
should-start, depending on how hard the dependency should be.  And the
same in required-stop or should-stop, if heartbeat need to stop before
openhpid during shutdown.  I do not know the package enough to say.

diff -ur heartbeat-2.1.3.orig/heartbeat/init.d/heartbeat.in 
heartbeat-2.1.3/heartbeat/init.d/heartbeat.in
--- heartbeat-2.1.3.orig/heartbeat/init.d/heartbeat.in  2008-01-06 
23:07:28.000000000 +0100
+++ heartbeat-2.1.3/heartbeat/init.d/heartbeat.in       2008-01-06 
23:12:48.000000000 +0100
@@ -36,11 +36,11 @@
 #
 # Short-Description: High-availability services.
 # Provides: heartbeat HA
-# Required-Start: $network $time $syslog
+# Required-Start: $remote_fs $network $time $syslog
 # Should-Start: ntp
-# Required-Stop: $network $time $syslog
-# Default-Start: 3 5
-# Default-Stop: 0 6
+# Required-Stop: $remote_fs $network $time $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
 ### END INIT INFO


Happy hacking,
--
Petter Reinholdtsen




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to