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

Bug#486789: sqlrelay: Please add LSB formatted dependency info in init.d script



Package:  sqlrelay
Version:  0.30-1
Severity: important
Tags:     patch
User:     initscripts-ng-devel@lists.alioth.debian.org

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
a 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.
This issue is a release goal for Lenny, and I set severity important
because of this.  This package is one of 5 left to fix before Lenny.

<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 -ru sqlrelay-0.39.4.orig/debian/sqlrelay.init sqlrelay-0.39.4/debian/sqlrelay.init
--- sqlrelay-0.39.4.orig/debian/sqlrelay.init   2008-06-18 08:05:49.000000000 +0200
+++ sqlrelay-0.39.4/debian/sqlrelay.init        2008-06-18 08:09:04.000000000 +0200
@@ -1,6 +1,13 @@
 #!/bin/sh
 #
-# init file for sqlrelay
+### BEGIN INIT INFO
+# Provides:          sqlrelay
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: init file for sqlrelay
+### END INIT INFO
 #
 # Written by Andreas Tille <tille@debian.org>.
 # Changed by Florian M. Weps <fweps@greenmail.ch>.

Happy hacking,
-- 
Petter Reinholdtsen



Reply to: