diff --git a/ldap.init b/ldap.init index 5df38dd..54b4fe0 100644 --- a/ldap.init +++ b/ldap.init @@ -156,9 +156,6 @@ function start() { if test x$SLAPD_LDAPI = xyes ; then harg="$harg ldapi:///" fi - if test -z "$wrapper" ; then - return 1 - fi # Start daemons. echo -n $"Starting $prog: " daemon --check=$prog ${slapd} -h "\"$harg\"" -u ${user} $OPTIONS $SLAPD_OPTIONS @@ -167,10 +164,22 @@ function start() { if [ $RETVAL -eq 0 ]; then if grep -q "^replogfile" /etc/openldap/slapd.conf; then prog=`basename ${slurpd}` - echo -n $"Starting $prog: " - daemon ${slurpd} $OPTIONS $SLURPD_OPTIONS - RETVAL=$? - echo + i=1; + for replogfile in `grep "^replogfile" /etc/openldap/slapd.conf` + do + if [ "$replogfile" != "replogfile" ] + then + echo -n $"Starting $prog: " + daemon ${slurpd} -r $replogfile -n $i + # make the return value nozero if any of the slurpd failed + RET=$? + if [ $RET -ne 0 ] ; then + RETVAL=$RET + fi + i=$[i+1] + echo + fi + done fi fi [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ldap diff --git a/openldap.spec b/openldap.spec index 3ffd320..3ea3bfa 100644 --- a/openldap.spec +++ b/openldap.spec @@ -736,6 +736,8 @@ fi (bz#201183) - sort the hosts by adders, preventing duplicities in migrate*nis*.pl (bz#201540) +- start slupd for each replicated database (bz#210155) + * Mon Apr 23 2007 Jan Safranek 2.3.34-2%{?dist} - slapadd during package update is now quiet (bz#224581)