I had a look at the source of watchdog, and discovered that the calls
to init.d script headers did not reflect the arguments used when
calling update-rc.d.  This make the headers incorrect, and it is vital
to have them fixed.  Here is a proposal tofix them.  It is dropping
$local_fs as it is a sub-dependency on $remote_fs, and also dropping
$syslog from wd_keepalive.init as it used to start before the syslog
implementation.  Default-Stop runlevels listed in wd_keepalive are not
used in the call to update-rc.d, and I thus assume they are wrong in
the header.  With this change, wd_keepalive is started early only in
runlevels 2-5, and watchdog will start after it.  If you want watchdog
to start after other scripts as well, these scripts should be listed
in a Should-Start header (and probably also in a Should-Stop) to get
it to stop before these other init.d scripts.

diff -ur watchdog-5.6/debian/init watchdog-5.6-pere/debian/init
--- watchdog-5.6/debian/init    2009-08-08 21:49:14.000000000 +0200
+++ watchdog-5.6-pere/debian/init       2009-08-08 21:48:50.000000000 +0200
@@ -4,8 +4,8 @@
 ### BEGIN INIT INFO
 # Provides:          watchdog
 # Short-Description: Start software watchdog daemon
-# Required-Start:    $local_fs $remote_fs $syslog
-# Required-Stop:     $local_fs $remote_fs $syslog
+# Required-Start:    $remote_fs $syslog wd_keepalive
+# Required-Stop:     $remote_fs $syslog
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 ### END INIT INFO
diff -ur watchdog-5.6/debian/wd_keepalive.init 
watchdog-5.6-pere/debian/wd_keepalive.init
--- watchdog-5.6/debian/wd_keepalive.init       2009-03-12 14:41:04.000000000 
+0100
+++ watchdog-5.6-pere/debian/wd_keepalive.init  2009-08-08 21:49:00.000000000 
+0200
@@ -4,10 +4,10 @@
 ### BEGIN INIT INFO
 # Provides:          wd_keepalive
 # Short-Description: Start watchdog keepalive daemon
-# Required-Start:    $local_fs $remote_fs $syslog
-# Required-Stop:     $local_fs $remote_fs $syslog
+# Required-Start:    $remote_fs
+# Required-Stop:     $remote_fs
 # Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Default-Stop:
 ### END INIT INFO

 PATH=/bin:/usr/bin:/sbin:/usr/sbin

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to