Package: lwresd bind9 Version: 1:9.4.2-1 Tags: patch User: [EMAIL PROTECTED] Usertags: missing-dependency
To be able to check boot script order, and also to be able to start boot scripts in parallel, it is important to know the dependencies of the various boot scripts. The Linux Software Base specifies a init.d header file format useful for this purpose, and adding such header to the init.d script would make it possible for me to use this information to check the current sequence and to speed up the debian boot. I am working on a system to update the boot sequence based on these dependencies, and would like see this as the default in Lenny. Because of this, it is nice if the dependencies was updated quickly. <URL:http://refspecs.freestandards.org/LSB_2.1.0/LSB-generic/LSB-generic/initscrcomconv.html> documents the LSB header format. Some debian notes are available from <URL:http://wiki.debian.org/LSBInitScripts>. Here is a patch to document the dependencies of lresd. I hope this is correct. While looking at the source, I had a look at the bind9 dependencies too, and the $local_fs dependency is not needed. A dependency $remote_fs will make sure $local_fs is available too. diff -ur bind9-9.4.2.orig/debian/lwresd.init bind9-9.4.2/debian/lwresd.init --- bind9-9.4.2.orig/debian/lwresd.init 2008-01-06 13:37:00.000000000 +0100 +++ bind9-9.4.2/debian/lwresd.init 2008-01-06 13:40:41.000000000 +0100 @@ -1,5 +1,14 @@ #!/bin/sh +### BEGIN INIT INFO +# Provides: lwresd +# Required-Start: $remote_fs $syslog $network +# Required-Stop: $remote_fs $syslog $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start and stop the Lightweight Resolver Daemon. +### END INIT INFO + PATH=/sbin:/bin:/usr/sbin:/usr/bin NAME=lwresd DAEMON=/usr/sbin/lwresd diff -ur bind9-9.4.2.orig/debian/bind9.init bind9-9.4.2/debian/bind9.init --- bind9-9.4.2.orig/debian/bind9.init 2008-01-06 13:37:00.000000000 +0100 +++ bind9-9.4.2/debian/bind9.init 2008-01-06 13:41:22.000000000 +0100 @@ -2,8 +2,8 @@ ### BEGIN INIT INFO # Provides: bind9 -# Required-Start: $syslog $local_fs $remote_fs $network -# Required-Stop: $syslog $local_fs $remote_fs $network +# Required-Start: $remote_fs $syslog $network +# Required-Stop: $remote_fs $syslog $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start and stop bind9 As the stop script do not seem to do anything except killing the daemon, that task might be better left to the sendsigs script in runlevel 0 and 6. If this is indeed the case, I recommend removing 0 and 6 from the Default-Stop list. Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

