Parcourir la source

check for daemon error conditions

Ralf S. Engelschall il y a 19 ans
Parent
commit
16816333af
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      openldap/openldap.spec
  2. 2 2
      openldap/rc.openldap

+ 1 - 1
openldap/openldap.spec

@@ -33,7 +33,7 @@ Class:        BASE
 Group:        Database
 License:      GPL
 Version:      2.3.20
-Release:      20060219
+Release:      20060320
 
 #   package options
 %option       with_fsl   yes

+ 2 - 2
openldap/rc.openldap

@@ -48,12 +48,12 @@
         if [ $? -ne 0 -a ".$openldap_url" != . ]; then
             flags="$flags -h \"$openldap_url\""
         fi
-        eval @l_prefix@/libexec/openldap/slapd $flags
+        eval @l_prefix@/libexec/openldap/slapd $flags || exit $?
     fi
     openldap_slurpd_needed || exit 0
     openldap_slurpd_signal 0
     if [ $? -ne 0 ]; then
-        @l_prefix@/libexec/openldap/slurpd
+        @l_prefix@/libexec/openldap/slurpd || exit $?
     fi
 
 %stop -p 700 -u @l_susr@