Package:  dmucs
Version:  0.6.1-1
Severity: minor
Tags:     patch
User:     [email protected]
Usertags: incorrect-dependency incorrect-runlevels

With dependency based boot sequencing, I discovered what I believe is
a bug in the init.d script. The dependencies are not correct.  The
daemon need /usr/ to be mounted, and thus need to depend on $remote_fs
both during boot and shutdown.  The effect is minimal because it is
not started from rcS.d/, but should be fixed.  The Should-Start header
do not make sense, and should be dropped.

<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 init.d might start
to early in the boot sequence.

diff -ur dmucs-0.6.1/debian/init dmucs-0.6.1-pere/debian/init
--- dmucs-0.6.1/debian/init     2009-08-13 21:41:17.000000000 +0200
+++ dmucs-0.6.1-pere/debian/init        2009-08-13 21:41:42.000000000 +0200
@@ -1,8 +1,8 @@
 #!/bin/sh
 ### BEGIN INIT INFO
 # Provides:          dmucs
-# Should-Start:      loadavg
-# Required-Start:
+# Required-Start:    $remote_fs
+# Required-Stop:     $remote_fs
 # Required-Stop:
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6

Happy hacking,
-- 
Petter Reinholdtsen



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

Reply via email to