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

Bug#464022: nscd: Incorrect init.d script dependencies



Package:  nscd
Version:  2.7-6
Severity: important
Tags:     patch
User:     initscripts-ng-devel@lists.alioth.debian.org
Usertags: incorrect-dependency

When testing dependency based boot sequencing, I discovered what I
believe is a bug in the init.d/nscd script.  It need a mounted /usr/,
but do not depend on $remote_fs which is the dependency required for
scripts needing /usr/.

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

This patch should solve the issue.  Without it, nscd is started too
early and stopped to late when dependency based boot sequencing is
enabled.

--- /etc/init.d/nscd    2008-01-12 21:21:53.000000000 +0100
+++ /tmp/nscd   2008-02-04 20:22:22.000000000 +0100
@@ -1,8 +1,8 @@
 #!/bin/sh
 ### BEGIN INIT INFO
 # Provides:          nscd
-# Required-Start:    $local_fs
-# Required-Stop:     $local_fs
+# Required-Start:    $remote_fs
+# Required-Stop:     $remote_fs
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: Starts the Name Service Cache Daemon

Happy hacking,
-- 
Petter Reinholdtsen



Reply to: