- print a warning if slaptest fails, slaptest -u succeeds, and one of the

directories listed as the storage location for a given suffix in slapd.conf
  contains a readable file named __db.001 (#118678)
This commit is contained in:
Nalin Dahyabhai 2005-05-04 23:37:57 +00:00
parent a61fe9e659
commit e466757d0d
2 changed files with 14 additions and 1 deletions

View File

@ -112,7 +112,17 @@ function configtest() {
fi fi
done done
# Check the configuration file. # Check the configuration file.
action "Checking configuration files for $prog: " $slaptest || exit 1 if ! action $"Checking configuration files for $prog: " $slaptest ; then
if $slaptest -u > /dev/null 2> /dev/null ; then
dirs=`LANG=C egrep '^directory[[:space:]]+[[:print:]]+$' /etc/openldap/slapd.conf | awk '{print $2}'`
for directory in $dirs ; do
if test -r $directory/__db.001 ; then
echo -n $"stale lock files may be present in $directory" ; warning ; echo
fi
done
fi
exit 1
fi
} }
function start() { function start() {

View File

@ -712,6 +712,9 @@ fi
* Wed May 4 2005 Nalin Dahyabhai <nalin@redhat.com> 2.2.26-1 * Wed May 4 2005 Nalin Dahyabhai <nalin@redhat.com> 2.2.26-1
- update to 2.2.26 (stable 20050429) - update to 2.2.26 (stable 20050429)
- enable the lmpasswd scheme - enable the lmpasswd scheme
- print a warning if slaptest fails, slaptest -u succeeds, and one of the
directories listed as the storage location for a given suffix in slapd.conf
contains a readable file named __db.001 (#118678)
* Tue Apr 26 2005 Nalin Dahyabhai <nalin@redhat.com> 2.2.25-1 * Tue Apr 26 2005 Nalin Dahyabhai <nalin@redhat.com> 2.2.25-1
- update to 2.2.25 (release) - update to 2.2.25 (release)