diff options
Diffstat (limited to 'ldap')
-rw-r--r-- | ldap/admin/src/initconfig.in | 22 | ||||
-rwxr-xr-x | ldap/admin/src/scripts/template-start-slapd.in | 6 |
2 files changed, 28 insertions, 0 deletions
diff --git a/ldap/admin/src/initconfig.in b/ldap/admin/src/initconfig.in new file mode 100644 index 00000000..aa2c4674 --- /dev/null +++ b/ldap/admin/src/initconfig.in @@ -0,0 +1,22 @@ +# This file is sourced by @package_name@ upon startup to set +# the default environment for all directory server instances. +# To set instance specific defaults, make a copy of this +# file in the same directory called @package_name@-instance +# where "instance" is the name of your directory server +# instance e.g. @package_name@-localhost for the +# slapd-localhost instance + +# In order to make more file descriptors available +# to the directory server, first make sure the system +# hard limits are raised, then use ulimit - uncomment +# out the following line and change the value to the +# desired value +# ulimit -n 8192 + +# In order to use SASL/GSSAPI the directory +# server needs to know where to find its keytab +# file - uncomment the following line and set +# the path and filename appropriately +# KRB5_KTNAME=@instconfigdir@/slapd-instance/keytab ; export KRB5_KTNAME + +# other environment settings can be added here too diff --git a/ldap/admin/src/scripts/template-start-slapd.in b/ldap/admin/src/scripts/template-start-slapd.in index 59d32345..f2f70c5b 100755 --- a/ldap/admin/src/scripts/template-start-slapd.in +++ b/ldap/admin/src/scripts/template-start-slapd.in @@ -6,6 +6,12 @@ export LD_LIBRARY_PATH SHLIB_PATH=$prefix{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export SHLIB_PATH +# source env. for all instances +[ -f @initconfigdir@/@package_name@ ] && . @initconfigdir@/@package_name@ + +# source env. for this instance +[ -f @initconfigdir@/@package_name@-{{SERV-ID}} ] && . @initconfigdir@/@package_name@-{{SERV-ID}} + # Script that starts the ns-slapd server. # Exit status can be: # 0: Server started successfully |