[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: openldap 1.2.9

In the code, there is (currently) no distinction between kill -TERM
and kill -INT.  Both will provide a clean shutdown of the daemon.
If there is a difference made in the future, it will be in how quickly
the daemon shuts down, and should not affect having a good database.

I would recommend updating to the latest version of 1.2.x.  I can only
begin to answer your other question.  Basically, 2.0.x moves to support
LDAPv3 protocol, and all that that involves.  There are many RFCs you
can read to start getting an idea.  Or get the new code, build it and
play with it.


> I saw openldap 2.0X doc saying
> >6.3. Stopping slapd
> >To kill off slapd safely, you should give a command like this
> >        kill -INT `cat /usr/local/var/slapd.pid`
> >where /usr/local/var is determined by configure.
> >Killing slapd by a more drastic method may cause information loss or
> database corruption.
> but /etc/rc.d/init.d/ldap use :
>     stop)
>         # Stop daemons.
>         echo -n "Shutting down ldap: "
>         killproc slapd
>         RETVAL=$?
>         if [ $RETVAL -eq 0 ]; then
>             if grep -q "^replogfile" /etc/openldap/slapd.conf; then
>                 killproc slurpd
>                 RETVAL=$?
>             fi
>         fi
>         echo
>         if [ $RETVAL -eq 0 ]; then
>             rm -f /var/lock/subsys/ldap
>             rm -f /var/run/slapd.args
>         fi
> Which one is better ?
> Keith
> -----Original Message-----
> From: Keith, Yeung Wai Kin [mailto:Keith.Yeung@corp.sunday.com]
> Sent: Thursday, September 21, 2000 1:56 PM
> To: 'openldap-software@OpenLDAP.org'
> Subject: openldap 1.2.9
> Dear Kurt and all others,
> Currently, I am using openldap 1.2.9 on 4 RH61. One is running as
> master(slapd+slurpd) and other slave. There is serveral times when a slave
> shutdown and then restart and DBs is out of sync (some entry are not
> searchable). I've to stop another slave to copy back the DBs. Looks like the
> DBs is corrupted from time to time even normal shutdown of mahcine or stop
> of slapd. Any idea ?
> Bty, openldap 2.0.3 released ? Any feature comparison between 2.0.X and
> 1.2.X ?
> Thanks !
> Keith