[Pkg-openldap-devel] Bug#474652: slapd: Problem with LSB header in init.d script

Petter Reinholdtsen pere at hungry.com
Sun Apr 6 23:15:05 UTC 2008


Package:  slapd
Version:  2.4.7-6.1
Severity: important
Tags:     patch
User:     initscripts-ng-devel at lists.alioth.debian.org
Usertags: incorrect-dependency

I just checked the boot order in unstable on a machine with dependency
based boot sequencing enabled, and discovered a problem with the
init.d scripts provided in this package.  It refuses to install when
using dependency based boot sequencing.  The reason is that it depend
on syslog, which isn't provided by any init.d script.  It should use
the virtual facility $syslog instead.  While looking at the current
header, I saw it need /usr/ mounted and should depend on $remote_fs,
and also need operational network and should depend on the virtual
facility $network instead of the networking script name.  Last, for
the "single user" runlevel 1, it should be stopped to ease
maintainence, so 1 should be listed in default-stop.

Here is a patch to solve this issue.

diff -u openldap2.3-2.4.7/debian/slapd.init openldap2.3-2.4.7/debian/slapd.init
--- openldap2.3-2.4.7/debian/slapd.init
+++ openldap2.3-2.4.7/debian/slapd.init
@@ -1,10 +1,10 @@
 #!/bin/sh
 ### BEGIN INIT INFO
 # Provides:          slapd
-# Required-Start:    networking syslog
-# Required-Stop:     networking syslog
+# Required-Start:    $remote_fs $network $syslog
+# Required-Stop:     $remote_fs $network $syslog
 # Default-Start:     2 3 4 5
-# Default-Stop:      0 6
+# Default-Stop:      0 1 6
 # Short-Description: OpenLDAP standalone server (Lightweight Directory Access Protocol)
 ### END INIT INFO


Happy hacking,
--
Petter Reinholdtsen





More information about the Pkg-openldap-devel mailing list