Package:  radvd
Version:  1:1.1-1
Severity: important
Tags:     patch
User:     initscripts-ng-de...@lists.alioth.debian.org
Usertags: incorrect-runlevels incorrect-dependency

With dependency based boot sequencing, I discovered what I believe is
a bug in the init.d script.  The list of runlevels in the init.d
header do not match the arguments used by update-rc.d.  Also, it uses
files in /usr/ but do not depend on $remote_fs.  Finally, its stop
action only kills the daemon, and this is normally better left to
sendsigs during halt and reboot, to speed up shutdown.

<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 service will start
to early in the boot, and might fail to start because /usr/ isn't
mounted yet.

diff -ur radvd-1.3/debian/radvd.init radvd-1.3-pere/debian/radvd.init
--- radvd-1.3/debian/radvd.init 2009-08-16 21:55:55.000000000 +0200
+++ radvd-1.3-pere/debian/radvd.init    2009-08-16 21:58:40.000000000 +0200
@@ -2,10 +2,10 @@

 ### BEGIN INIT INFO
 # Provides:          radvd
-# Required-Start:    $syslog $local_fs $network
-# Required-Stop:     $syslog $local_fs $network
-# Default-Start:     S 2 3 4 5
-# Default-Stop:      0 1 6
+# Required-Start:    $syslog $remote_fs $network
+# Required-Stop:     $syslog $remote_fs $network
+# Default-Start:     2 3 4 5
+# Default-Stop:      1
 # Short-Description: Router Advertising Daemon
 ### END INIT INFO


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