Author: rmeggins
Update of /cvs/dirsec/adminserver/wrappers
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29402/adminserver/wrappers
Modified Files:
initscript.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
Index: initscript.in
===================================================================
RCS file: /cvs/dirsec/adminserver/wrappers/initscript.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- initscript.in 15 Jun 2007 17:13:02 -0000 1.1
+++ initscript.in 5 Oct 2007 23:48:02 -0000 1.2
@@ -92,6 +92,8 @@
umask 077
+[ -f @initconfigdir@/@package_name@ ] && . @initconfigdir@/@package_name@
+
start() {
if [ ! -f $start_script ]; then
echo_n "*** Error: $start_script does not exist"
@@ -99,7 +101,6 @@
exit 1
fi
echo "Starting $prog: "
- # Start every slapd instance that isn't already running
# the server creates pidfile and writes the pid to it when it is fully
# started and available to serve clients
Show replies by date