Package:  iscsitarget
Version:  0.4.15+svn145-1
Severity: important
Tags:     patch
User:     initscripts-ng-de...@lists.alioth.debian.org
Usertags: incorrect-provides incorrect-dependency

With dependency based boot sequencing, I discovered what I believe is
a bug in the init.d script.  The provides should be unique and
preferably the name of the script.  The current one conflict with
other scripts (the clvm, cman and rgmanager scripts to be exact).  The
dependencies make sure the script is started after /usr/ is available
and the syslog collector is started, which as far as I can see should
match its original position in the boot sequence.

<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 >.

This patch should solve the issue.  Without it, the script will fail
to install because another script providing the same service already
is installed, and the script might be started to early in the boot
sequence.

diff -ur iscsitarget-0.4.16+svn162/debian/iscsitarget.init 
iscsitarget-0.4.16+svn162-pere/debian/iscsitarget.init
--- iscsitarget-0.4.16+svn162/debian/iscsitarget.init   2009-08-18 
18:26:24.000000000 +0200
+++ iscsitarget-0.4.16+svn162-pere/debian/iscsitarget.init      2009-08-18 
18:27:21.000000000 +0200
@@ -1,9 +1,9 @@
 #!/bin/sh
 #
 ### BEGIN INIT INFO
-# Provides:          cluster manager
-# Required-Start:    $network $time
-# Required-Stop:     $network $time
+# Provides:          iscsitarget
+# Required-Start:    $remote_fs $syslog $network $time
+# Required-Stop:     $remote_fs $syslog $network $time
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: Starts and stops the iSCSI target

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