diff options
| author | Rich Megginson <rmeggins@redhat.com> | 2007-10-05 23:45:50 +0000 |
|---|---|---|
| committer | Rich Megginson <rmeggins@redhat.com> | 2007-10-05 23:45:50 +0000 |
| commit | b786eb2121dc924b985966036095f3f9ca638cf6 (patch) | |
| tree | 1747652ad5f4da7e8c8a6e46850dc193840d66ca /ldap/admin/src/scripts | |
| parent | b47079a1c1f3e29762925554f7bfaf9f22dedddd (diff) | |
| download | ds-b786eb2121dc924b985966036095f3f9ca638cf6.tar.gz ds-b786eb2121dc924b985966036095f3f9ca638cf6.tar.xz ds-b786eb2121dc924b985966036095f3f9ca638cf6.zip | |
Resolves: bug 248169
Bug Description: init script modification needed for kerberos auth
Reviewed by: nhosoi (Thanks!)
Fix Description: I just took Simo's initial patch and ran with it. The initconfigdir parameter is the directory containing the config file for the init script. configure will first try to use $(sysconfdir)/sysconfig, then $(sysconfdir)/default (Solaris and Debian, among others), then the package config directory (the default on HP-UX), for this parameter. The init script and startup script will look in the initconfigdir to find the init config file to source. For directory server, an instance specific file can be used, named e.g. dirsrv-localhost which will apply to the slapd-localhost instance only.
A default init config file is provided for dirsrv and dirsrv-admin, with some examples of how it could be used.
Platforms tested: RHEL5 x86_64
Flag Day: Yes - autotool file changes
Doc impact: Yes. We will need to document how the user can supply environment to the servers at startup time without having to edit the init scripts or the startup scripts.
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none
Diffstat (limited to 'ldap/admin/src/scripts')
| -rwxr-xr-x | ldap/admin/src/scripts/template-start-slapd.in | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
