[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Deleting all Data



Thanks very much

-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of Howard Chu
Sent: 15 October 2004 10:38
To: Sadik Kumlali
Cc: openldap-software@OpenLDAP.org
Subject: Re: Deleting all Data

Sadik Kumlali wrote:

>/etc/init.d/ldap stop
>
>
># /var/lib/ldap/example.com: 'directory' definition in 'slapd.conf' 
># that gives the path of folder in which database files reside
>rm -rf /var/lib/ldap/example.com
>
>/etc/init.d/ldap start
>
>That's all!
>  
>
Not quite. That also deletes the directory itself, which will cause 
slapd to fail to startup. This example would be better as

  rm -rf /var/lib/ldap/example.com/*

-- 
  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support