[debian-edu-commits] debian-edu/ 02/02: ldap-tools/ldap-debian-edu-install: Stop smbd service to set it up correctly.

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Fri Dec 29 10:57:37 UTC 2017


This is an automated email from the git hooks/post-receive script.

schweer-guest pushed a commit to branch master
in repository debian-edu-config.

commit 07a4ab4af0b552f0bd2ab3341100db49b7f8ff9a
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Fri Dec 29 11:48:36 2017 +0100

    ldap-tools/ldap-debian-edu-install: Stop smbd service to set it up correctly.
---
 ldap-tools/ldap-debian-edu-install | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/ldap-tools/ldap-debian-edu-install b/ldap-tools/ldap-debian-edu-install
index 80cd54a..28cff75 100755
--- a/ldap-tools/ldap-debian-edu-install
+++ b/ldap-tools/ldap-debian-edu-install
@@ -253,6 +253,15 @@ dns_stop() {
     fi
 }
 
+smbd_stop() {
+    # make sure to stop smbd service, to avoid: 'ldap admin dn' is missing.
+    PID=`pidof smbd || /bin/true`
+    if [ -n "$PID" ]; then
+        echo "info: stopping smbd with pid $PID"
+       service smdb stop
+    fi
+}
+
 # Init tree
 init_ldap () {
 
@@ -498,6 +507,7 @@ EOF
     RESTARTSLAPD=$remember_RESTART_SLAPD
 
     dns_stop
+    smbd_stop
 
     if [ -x /sbin/start-stop-daemon.REAL ] ; then
         mv /sbin/start-stop-daemon.FAKE /sbin/start-stop-daemon

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list