automatically re-start LDAP in case of crash

Gunnar Wrobel wrobel at pardus.de
Mon Oct 27 15:36:29 CET 2008


Quoting Albrecht Dreß <albrecht.dress at lios-tech.com>:

> Hi Gunnar:
>
> Am 21.10.2008 11:52:01 schrieb(en) Gunnar Wrobel:
>> I guess you could install monit for the task. I think it was part of
>> the Kolab server in former times. At least there is an entry in CVS
>> for it. I don't know why it was dropped though.
>
> Thanks for that hint!
>
> Maybe I'll write my own script to do that, as Monit looks somewhat
> "heavy" for that task.  Something like: open a socket connection to
> slapd, if it breaks try to re-connect, if that times out, run openpkg
> to stop OpenLDAP, issue a db_restore (just to be safe), and again use
> openpkg to launch OpenLDAP again.  A simple perl script should be
> sufficient.  What do you think, is that approach correct?

Yes, should be okay.

>
> A fix for OpenLDAP would of course be the preferred solution - again
> had a crash with the same symptoms tonight.  Do you know how I could
> get more debugging info out of slapd to track the issue?

You can increase the log level in  
/kolab/etc/kolab/templates/slapd.conf.template. But I never really  
liked the LDAP logs. They tend to get quite bloated if you do not know  
exactly what you are searching for and include a lot of detail in the  
logs.

Cheers,

Gunnar

>
> Thanks, Albrecht.
>
> _______________________________________________
> Kolab-users mailing list
> Kolab-users at kolab.org
> https://kolab.org/mailman/listinfo/kolab-users
>



-- 
______ http://kdab.com _______________ http://kolab-konsortium.com _

p at rdus Kolab work is funded in part by KDAB and the Kolab Konsortium

____ http://www.pardus.de _________________ http://gunnarwrobel.de _
E-mail : p at rdus.de                                 Dr. Gunnar Wrobel
Tel.   : +49 700 6245 0000                          Bundesstrasse 29
Fax    : +49 721 1513 52322                          D-20146 Hamburg
--------------------------------------------------------------------
    >> Mail at ease - Rent a kolab groupware server at p at rdus <<
--------------------------------------------------------------------


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.kolab.org/pipermail/users/attachments/20081027/3a1bcff3/attachment.sig>


More information about the users mailing list