Package:  nbd-client
Version:  1:2.8.7-4
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 nbd-client 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.

<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 relative to version 1:2.9.7-1 to document the
dependencies of nbd-client.  I hope this is correct.

--- /etc/init.d/nbd-client.orig      2007-06-15 11:35:50.000000000 +0200
+++ /etc/init.d/nbd-client    2007-10-27 11:10:45.000000000 +0200
@@ -18,6 +18,13 @@
 #TODO: find a better way to figure out what nbd-devices need to be
 #disconnected (the for-loop works, but the kernel does
 #printk("NBD_DISCONNECT") after each request).
+### BEGIN INIT INFO
+# Provides:          nbd-client
+# Required-Start:    $network
+# Required-Stop:     $network
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+### END INIT INFO

 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 DAEMON="/sbin/nbd-client"



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

Reply via email to