Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71268 - Method of stopping openldap (Slapd) is different then the recommended method
Summary: Method of stopping openldap (Slapd) is different then the recommended method
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-15 03:34 UTC by jos houtman
Modified: 2004-12-01 20:55 UTC (History)
1 user (show)

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 jos houtman 2004-11-15 03:34:03 UTC
as suggested by the openldap administrators guide,
the preferred method to kill slapd is with an INT signal.
Another method could lead to database corruption/data loss.

http://www.openldap.org/doc/admin22/runningslapd.html#Stopping%20slapd

The init script that comes with net-nds/openldap-2.1.30-r2, (its is possibly the same with other versions) Kills the daemon with a TERM signal.

I myself had database corruption a couple of times allready, 
I cannot blame this, because my box was under strange conditions every time it happend. But i cannot rule it out either.



Reproducible: Couldn't Reproduce
Steps to Reproduce:
1. Reboot (last time i had quite a few runaway processes [configure crashed], couldnt kill them, ps/top just hang while they tried to list the processes)



Actual Results:  
The database was corrupted. i had to remove it and install from a backup ldif.

Expected Results:  
Not cause database corruption

I dont know if this was the cause, and maybe there is a good reason for the TERM
signal i'am not aware of.

This is my first bug(suggestion), so please bare with me. I tried to be as clear
as possible, but its probably some ranting you have to struggle through..
Comment 1 jos houtman 2004-11-15 03:37:45 UTC
forgot the solution..

change the init script stop function to this:

start-stop-daemon -s 2 --stop --quiet --pidfile /var/run/openldap/slapd.pid

Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-01 20:55:24 UTC
in cvs now.