Benin Technologies wrote:
Hi, I'm doing some tests on a perl backend, which causes sometimes my OpenLDAP to hang. I then kill the process, but when I try to restart openldap it won't, because of my HDB backend. I get the following message : db_db_open: database "dc=mycompany": database already in use. After rebooting the server, everything works fine. Any way to "clean" the HDB backend manually, without having to reboot the server ?
Sounds like you're running on Windows, which takes a long time after a process dies for it to release its file locks. I don't know of any solution other than to wait for Windows to eventually notice the process is gone.
The smarter solution of course is to quit using such a braindead OS as a server platform.
-- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/