[Date Prev][Date Next]
Re: kill on OpenBSD won't work
On Fri, 2002-11-15 at 10:28, email@example.com wrote:
> Trying to stop OpenLDAP 2.0.27 on a OpenBSD 3.0 sparc installation doesn't
> work, I have to do a kill -9 to stop the DB. I suppose that's not a good
> solution, any other ideas ? Or is this maybe a bug ?
Okay I bet this is the 'hanging' connections problem. To help avoid this
set a time limit on idle connections. For example put this in
slapd.conf to drop idle connections after 120 seconds.
The reason is that slapd will not close a tcp connection when you kill
it. Only after it believes ALL connections are gone will the process
die. Using the timeout just guarantees that even bad clients that forget
to close the session go away eventually. This should not affect good
clients as they should reconnect should they ever get kicked off.