[Fedora-directory-commits] ldapserver/ldap/cm/newinst setup, 1.9.2.1, 1.9.2.2

Noriko Hosoi (nhosoi) fedora-directory-commits at redhat.com
Fri Sep 9 22:50:40 UTC 2005


Author: nhosoi

Update of /cvs/dirsec/ldapserver/ldap/cm/newinst
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17156

Modified Files:
      Tag: Directory71RtmBranch
	setup 
Log Message:
[160589] IBM JVM breaks on some machines/kernels : admin server fails to start
1) set an environment variable JAVA_COMPILER=NONE
2) added -Djava.compiler=NONE to jvm.option in admin-serv/config/jvm12.conf
3) added reconfig option "-r" to admin server ns-config and ns-update.  
   Without passing the option, admin server's config file (e.g.,
   server.xml) are not properly updated.



Index: setup
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/cm/newinst/setup,v
retrieving revision 1.9.2.1
retrieving revision 1.9.2.2
diff -u -r1.9.2.1 -r1.9.2.2
--- setup	2 Sep 2005 23:30:49 -0000	1.9.2.1
+++ setup	9 Sep 2005 22:50:37 -0000	1.9.2.2
@@ -172,6 +172,10 @@
 
 rm -f $sroot/setup/install.inf
 
+# Fix for "[160589] IBM JVM breaks on some machines/kernels : 
+#                   admin server fails to start
+JAVA_COMPILER=NONE; export JAVA_COMPILER
+
 echo "INFO Begin Setup . . ." | tee -a $logfile
 # cat LICENSE.txt
 if ! [ $silent ]; then
@@ -251,13 +255,10 @@
 	# check if ds instance directory exists or not
 	# if it does, run ns-config with the reconfigure option
 	doreconfig=""
-	for x in `ls -d slapd-*`
-	do
-		if [ -d $x ]; then
-			doreconfig="-r"
-			break
-		fi
-	done
+	ls -d slapd-* > /dev/null 2>&1
+	if [ $? -eq 0 ]; then
+		doreconfig="-r"
+	fi
 
 	# first, run ds
 	cd bin/slapd/admin/bin
@@ -266,7 +267,7 @@
 
 	# next, run admin
 	cd bin/admin
-	./ns-config -f $inffile -l $logfile -m $installmode || doExit
+	./ns-config -f $inffile -l $logfile -m $installmode $doreconfig || doExit
 	cd ../..
 fi
 
@@ -278,7 +279,12 @@
 
 `pwd`/bin/slapd/admin/bin/ns-update $silentarg $myargs -f $inffile | tee -a $logfile || doExit
 
-`pwd`/bin/admin/ns-update $silentarg $myargs -f $inffile | tee -a $logfile || doExit
+`pwd`/bin/admin/ns-update $doreconfig $silentarg $myargs -f $inffile | tee -a $logfile || doExit
+
+# Fix for "[160589] IBM JVM breaks on some machines/kernels : 
+#                   admin server fails to start
+sed -e "s/jvm.option=\(.*\)/jvm.option=\1 -Djava.compiler=NONE/" admin-serv/config/jvm12.conf > admin-serv/config/jvm12.tmp
+mv admin-serv/config/jvm12.tmp admin-serv/config/jvm12.conf
 
 echo "INFO Finished with setup, logfile is setup/setup.log" | tee -a $logfile
 if [ -f setup/setup.log ] ; then




More information about the Fedora-directory-commits mailing list