Yep, you were right, the process was still there !!! (I launched slapd
manually, and thought CTRL+C would kill it, but it didn't).
After killing the process slapd starts fine
Le 06/05/2013 21:41, Howard Chu a écrit :
Benin Technologies wrote:
> nope, Debian 6.0.4
The only reason for slapd to say the database is already in use is
because a file lock still exists. In this case it implies that the
original slapd process is still there. You said you already killed it
but it sounds like the process hasn't gone away.
> Le 06/05/2013 20:25, Howard Chu a écrit :
>> Benin Technologies wrote:
>>> 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
>>> 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.