Bug#541492: nscd: Missing init.d dependency on $syslog
Package: nscd
Version: 2.3.5-8
Severity: important
Tags: patch
User: initscripts-ng-devel@lists.alioth.debian.org
Usertags: incorrect-dependency
With dependency based boot sequencing, I discovered what I believe is
a slight bug in the init.d script. The dependencies are not correct.
The daemon seem to log to syslog, and thus should depend on $syslog.
This will make nscd start before the syslog implementation, and the
first syslog messages logged might be lost.
<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 will start
to early in the boot sequence.
diff -ur eglibc-2.9/debian/debhelper.in/nscd.init eglibc-2.9-pere/debian/debhelper.in/nscd.init
--- eglibc-2.9/debian/debhelper.in/nscd.init 2009-08-14 18:42:13.000000000 +0200
+++ eglibc-2.9-pere/debian/debhelper.in/nscd.init 2009-08-14 18:40:00.000000000 +0200
@@ -1,8 +1,8 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: nscd
-# Required-Start: $remote_fs
-# Required-Stop: $remote_fs
+# Required-Start: $remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
# 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: