From 2478fdf2ec2bf00e539206b7bc5cdd129daaa9dc Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 18 Jun 2004 04:49:08 +0000 Subject: [PATCH] A very basic DB_CONFIG example --- servers/slapd/DB_CONFIG | 25 +++++++++++++++++++++++++ servers/slapd/Makefile.in | 12 ++++++++++-- servers/slapd/slapd.conf | 2 +- 3 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 servers/slapd/DB_CONFIG diff --git a/servers/slapd/DB_CONFIG b/servers/slapd/DB_CONFIG new file mode 100644 index 0000000000..829f421fb6 --- /dev/null +++ b/servers/slapd/DB_CONFIG @@ -0,0 +1,25 @@ +# $OpenLDAP$ +# Example DB_CONFIG file for use with slapd(8) BDB/HDB databases. +# +# See Sleepycat Berkeley DB documentation +# +# for detail description of DB_CONFIG syntax and semantics. +# +# Hints can also be found in the OpenLDAP Software FAQ +# + +# one 0.25 GB cache +set_cachesize 0 268435456 1 + +# Data Directory +#set_data_dir db + +# Transaction Log settings +set_lg_regionmax 262144 +set_lg_bsize 2097152 +#set_lg_dir logs + +# When using (and only when using) slapadd(8) or slapindex(8), +# the following flags may be useful: +#set_flags DB_TXN_NOSYNC +#set_flags DB_TXN_NOT_DURABLE diff --git a/servers/slapd/Makefile.in b/servers/slapd/Makefile.in index 57fee8be3f..6e34d817fa 100644 --- a/servers/slapd/Makefile.in +++ b/servers/slapd/Makefile.in @@ -350,7 +350,8 @@ veryclean-local-srv: FORCE fi; \ done -install-local-srv: install-slapd install-conf install-schema install-tools +install-local-srv: install-slapd install-tools \ + install-conf install-db-config install-schema install-tools install-slapd: FORCE -$(MKDIR) $(DESTDIR)$(libexecdir) @@ -406,7 +407,6 @@ install-schema: FORCE install-conf: FORCE @-$(MKDIR) $(DESTDIR)$(sysconfdir) - @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-data $(INSTALL) $(INSTALLFLAGS) -m 600 slapd.conf.tmp $(DESTDIR)$(sysconfdir)/slapd.conf.default if test ! -f $(DESTDIR)$(sysconfdir)/slapd.conf; then \ echo "installing slapd.conf in $(sysconfdir)"; \ @@ -416,6 +416,14 @@ install-conf: FORCE echo "PRESERVING EXISTING CONFIGURATION FILE $(DESTDIR)$(sysconfdir)/slapd.conf" ; \ fi +install-db-config: FORCE + @-$(MKDIR) $(DESTDIR)$(localstatedir) $(DESTDIR)$(sysconfdir) + @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-data + $(INSTALL) $(INSTALLFLAGS) -m 600 DB_CONFIG \ + $(DESTDIR)$(localstatedir)/openldap-data/DB_CONFIG.example + $(INSTALL) $(INSTALLFLAGS) -m 600 DB_CONFIG \ + $(DESTDIR)$(sysconfdir)/DB_CONFIG.example + install-tools: FORCE -$(MKDIR) $(DESTDIR)$(sbindir) cd $(DESTDIR)$(sbindir); \ diff --git a/servers/slapd/slapd.conf b/servers/slapd/slapd.conf index f7f251113d..2531929648 100644 --- a/servers/slapd/slapd.conf +++ b/servers/slapd/slapd.conf @@ -49,7 +49,7 @@ argsfile %LOCALSTATEDIR%/run/slapd.args # rootdn can always read and write EVERYTHING! ####################################################################### -# ldbm database definitions +# BDB database definitions ####################################################################### database bdb -- 2.39.5