Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99444 - slapd init script fails to see that slapd fails on database errors
Summary: slapd init script fails to see that slapd fails on database errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-18 10:09 UTC by Stian Skjelstad
Modified: 2006-05-06 07:24 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 Stian Skjelstad 2005-07-18 10:09:10 UTC
When my libdb was upgraded from 4.1 to 4.2. This makes the database-files
incompatible:

/etc/init.d/slapd start

goes ok (but I can see in /var/log/messages that slapd fails to load the
database and dies)

/etc/init.d/slapd stop

then fails, since it can't find the process listed in the pid file, and you have
to do a

/etc/inid.d/slapd zap

if you want to try to start it again.



So to add things up:

When upgrading berkely db from 4.1 to 4.2, you need to rebuild database files
(index, cache, log)
slapd initscript fails to detect if slapd dies fast (it can sleep for 250
milliseconds and see if /proc/PID/status exists or something like that)

Reproducible: Always
Steps to Reproduce:
upgrade berkelydb after slapd has been setup
Actual Results:  
things look okey during boot

Expected Results:  
init script should fail, and post a message what might be the cause
Comment 1 Markus Ullmann (RETIRED) gentoo-dev 2006-05-06 07:24:47 UTC
This is fixed in latest baselayout

You can adjust the time checking for a process being up there