Summary: | =net-nds/openldap-2.4.40 USE=-berkdb - /etc/init.d/slapd: checkconfig() fails | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Guillaume Castagnino <casta> |
Component: | [OLD] Server | Assignee: | Gentoo LDAP project <ldap-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | coil93 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Guillaume Castagnino
2014-10-14 13:54:45 UTC
In particular the first line of this check is: for d in `awk '/^directory/{print $2}'`; do which leaves awk waiting for input from standard in. I assume it should read something like: for d in `awk '/^directory/{print $2}' ${OPTS_CONF##-[fF] *}`; do Also, besides not looking at the database type as mentioned in comment 1, the check for files not owned by the ldap user is broken for two reasons: First, it checks $? from 'grep -sq .' for being not equal to zero which would mean grep didn't find what it was looking for (anything) and it prints a warning. However, I think the warning should only be if the 'find' was to find something, not if it didn't. Second, there are files in that directory that are put there during install that are owned by root: /var/lib/openldap-data/DB_CONFIG.example /var/lib/openldap-data/.version-tag /var/lib/openldap-data/.keep_net-nds_openldap-0 This checkconfig breaks start of slapd. Use old /etc/int.d/slapd file from backup, or install version before. InCVS *** Bug 526198 has been marked as a duplicate of this bug. *** |