[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#458487: laptop-netconf: Please add LSB formatted dependency info in init.d script



Package:  laptop-netconf
Version:  0.9.6.1
Tags:     patch
User:     initscripts-ng-devel@lists.alioth.debian.org
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.  I hope this is correct.

diff -ur laptop-netconf-0.9.6.7.orig/debian/init laptop-netconf-0.9.6.7/debian/init
--- laptop-netconf-0.9.6.7.orig/debian/init     2006-11-06 08:40:28.000000000 +0100
+++ laptop-netconf-0.9.6.7/debian/init  2008-01-01 00:28:49.000000000 +0100
@@ -1,7 +1,12 @@
 #!/bin/sh -e
-#
-# laptop-netconf    Automatically run laptop-netconf at boot.
-#
+### BEGIN INIT INFO
+# Provides:          laptop-netconf
+# Required-Start:    $remote_fs $network
+# Required-Stop:     $remote_fs $network
+# Default-Start:     S
+# Default-Stop:
+# Short-Description: Automatically run laptop-netconf at boot.
+### END INIT INFO

 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 PROGRAM=/usr/sbin/laptop-netconf

I dropped the default-stop values, as the stop part of this script is
a no-op.

Happy hacking,
-- 
Petter Reinholdtsen



Reply to: