[Fedora-directory-commits] adminserver/admserv/cfgstuff initconfig.in, NONE, 1.1 start-ds-admin.in, 1.3, 1.4

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Fri Oct 5 23:48:04 UTC 2007


Author: rmeggins

Update of /cvs/dirsec/adminserver/admserv/cfgstuff
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29402/adminserver/admserv/cfgstuff

Modified Files:
	start-ds-admin.in 
Added Files:
	initconfig.in 
Log Message:
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 



--- NEW FILE initconfig.in ---
# This file is sourced by @package_name@ upon startup to set
# the default environment for the admin server.

# In order to make more file descriptors available
# to the 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
# server needs to know where to find its keytab
# file - uncomment the following line and set
# the path and filename appropriately
# KRB5_KTNAME=@instconfigdir@/admin-serv/keytab ; export KRB5_KTNAME

# other environment settings can be added here too


Index: start-ds-admin.in
===================================================================
RCS file: /cvs/dirsec/adminserver/admserv/cfgstuff/start-ds-admin.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- start-ds-admin.in	1 Aug 2007 18:14:53 -0000	1.3
+++ start-ds-admin.in	5 Oct 2007 23:48:02 -0000	1.4
@@ -56,4 +56,7 @@
     OMIT_DEFLATE="-DOmitDeflate"
 fi
 
+# source env. for admin server
+[ -f @initconfigdir@/@package_name@ ] && . @initconfigdir@/@package_name@
+
 $HTTPD $OMIT_DEFLATE -k start -f @configdir@/httpd.conf "$@"




More information about the Fedora-directory-commits mailing list