[Pkg-samba-maint] Bug#478800: samba: Missing slapd dependency in init.d LSB header

Petter Reinholdtsen pere at hungry.com
Thu May 1 08:01:35 UTC 2008


Package:  samba
Version:  1:3.0.28a-2
Severity: important
Tags:     patch
User:     initscripts-ng-devel at lists.alioth.debian.org
Usertags: incorrect-dependency

I discovered this problem in the Lenny based test version of Debian
Edu.  In it, we configure samba to fetch information from LDAP, and
enable dependency based boot sequencing.  In this configuration, the
samba process is started before the LDAP server, and thus failing to
fetch its settings from LDAP.  The reason is that there is no relation
between the samba and slapd init.d scripts.

The solution is to let the samba init.d script have an soft dependency
on the slapd script.  Please apply the following patch.

diff -ur samba-3.0.28a/debian/samba.init samba-3.0.28a-new/debian/samba.init
--- samba-3.0.28a/debian/samba.init     2008-05-01 09:50:43.000000000 +0200
+++ samba-3.0.28a-new/debian/samba.init 2008-05-01 09:48:12.000000000 +0200
@@ -4,6 +4,8 @@
 # Provides:          samba
 # Required-Start:    $network $local_fs $remote_fs
 # Required-Stop:     $network $local_fs $remote_fs
+# Should-Start:      slapd
+# Should-Stop:       slapd
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: start Samba daemons (nmbd and smbd)





More information about the Pkg-samba-maint mailing list