tags 478807 + pending
thanks

On Thu, 2008-05-01 at 10:15 +0200, Petter Reinholdtsen wrote: 
> When using libnss-ldapd and slapd on a machine with dependency based
> boot sequencing enabled, the boot script order is wrong.  This is the
> default setting in Debian Edu.  The nslcd init.d script should start
> after slapd, but it does not.  The solution is to add a soft
> dependency in nslcd.

Done (r721).

> You can probably drop the redundant dependency on $network (already a
> dependency of $remote_fs) and replace $local_fs with $remote_fs as a
> hard dependency. These would be equivalent and make the dependency
> list shorter. To be exact, you could make it like this:
>
> # Required-Start: $remote_fs $syslog
> # Required-Stop: $remote_fs $syslog
> # Should-Start: slapd
> # Should-Stop: slapd

There is no requirement on having slapd running when nslcd is stopped so
I got rid of that one but other than that I've used the above.

I've also added an X-Start-Before header which lists a couple of mail
servers that provide the mail-transport-agent virtual package and some
other stuff I could think of. Extracting all service names correctly was
not easy though (some mail servers provide mail-transport-agent but not
all). Is there some place where all init scripts are available
(preferable with LSB header info and current sequence numbers)?

Btw. I would like to add something like
  Provides:          $named
because nslcd can provide hostname resolution functions but I understand
that the init script is not the right place for that, what is (haven't
tried insserv yet)?

Also having something better than
  X-Start-Before: whole list of daemons that may need nss functions
would be welcome because nss-ldapd can't know about all daemons that may
need NSS functions and the nslcd init script is not the right place to
configure this in my opinion.

(btw while digging around in init scripts I noticed cron and atd are
started at a very high sequence but their dependency headers suggest
they could be started sooner)

For reference, the changes are:
 ### BEGIN INIT INFO
 # Provides:          nslcd
-# Required-Start:    $local_fs $syslog
-# Required-Stop:     $local_fs $syslog
-# Should-Start:      $remote_fs $network
-# Should-Stop:       $remote_fs
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Should-Start:      slapd
+# X-Start-Before:    mail-transport-agent exim4 sendmail nullmailer masqmail 
citadel cron atd
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: nss-ldapd connection daemon
 # Description:       nslcd is a LDAP connection daemon that is used to
 #                    do LDAP queries for the NSS libraries.
 ### END INIT INFO

-- 
-- arthur - [EMAIL PROTECTED] - http://people.debian.org/~adejong --

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to