Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43377 - slapd fails to stop with /etc/init.d/slapd stop
Summary: slapd fails to stop with /etc/init.d/slapd stop
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-01 06:47 UTC by Janne Pikkarainen
Modified: 2005-07-18 10:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janne Pikkarainen 2004-03-01 06:47:54 UTC
I've tried many versions of OpenLDAP (both 2.0.x and 2.1.x) in Gentoo Linux and each one of them has a strange bug: "/etc/init.d/slapd stop" doesn't really stop the slapd daemon. One has to clean up the daemon manually, then "/etc/init.d/slapd zap" it and then restart it... Seems to happen with out-of-the-box configuration and my modified /etc/openldap/slapd.conf. 

Am I really the only one encountering this (in five servers + my desktop box)?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2004-03-01 15:02:50 UTC
I am unable to reproduce this bug with openldap 2.1.26. Starting and stopping slapd works fine for me. I suggest that it is something to do with your particular setup.
Comment 2 Janne Pikkarainen 2004-03-01 23:06:29 UTC
Hmm, let me try with 2.1.26 -- I must confess that the latest 2.1.x version I tried was 2.1.23. 

I'll also give 2.0.27-r5 a try, the latest I really have tried is 2.0.27-r4, but since changelog didn't tell me anything related to this bug, I thought it would still be alive.
Comment 3 Janne Pikkarainen 2004-03-02 00:23:06 UTC
Ok. It works fine with 2.0.27-r5, but not with 2.1.26 (tried with my own slapd.conf and out-of-the-box slapd.conf). With 2.0.27-r5 there were slapd.pid and slapd.args files in /var/run/openldap/, but not with 2.1.26, so that must be why restarting slapd fails.

I wonder what's going on - I have these lines in my slapd.conf but still in some versions of OpenLDAP the pid/args file doesn't get created during startup.

---
pidfile         /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args
---
Comment 4 Christoph Linder 2004-08-21 04:40:24 UTC
Maybe slapd crashed *before* you tried to shut it down?
Does 'ps xa | grep slapd' show something?
Comment 5 Janne Pikkarainen 2004-08-21 04:43:27 UTC
No, slapd did not crash before /etc/init.d/slapd stop. I know it because that ldap database was in active use all the time.
Comment 6 Gudleik Rasch 2004-11-17 16:46:56 UTC
Is this still a problem?

Does the directory /var/run/openldap exist with owner ldap:ldap?
; ls -l /var/run | fgrep openldap
drwxr-xr-x  2 ldap      ldap       136 nov 17 19:35 openldap

And does your /etc/init.d/slapd say this:
;  cat /etc/init.d/slapd | egrep  " --stop"
start-stop-daemon --stop --quiet --pidfile /var/run/openldap/slapd.pid
Comment 7 Janne Pikkarainen 2004-11-17 22:04:10 UTC
Nowadays this works ok. 
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-07-18 10:15:48 UTC
(In reply to comment #7)
> Nowadays this works ok. 

Closing a stale bug.