[jboss-cvs] JBossAS SVN: r73353 - branches/JBPAPP_4_3_0_GA_JBPAPP-836/system/src/bin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue May 13 11:00:23 EDT 2008
Author: skoussou at redhat.com
Date: 2008-05-13 11:00:23 -0400 (Tue, 13 May 2008)
New Revision: 73353
Modified:
branches/JBPAPP_4_3_0_GA_JBPAPP-836/system/src/bin/run.sh
Log:
JBPAPP-836 - Modified run.sh
Modified: branches/JBPAPP_4_3_0_GA_JBPAPP-836/system/src/bin/run.sh
===================================================================
--- branches/JBPAPP_4_3_0_GA_JBPAPP-836/system/src/bin/run.sh 2008-05-13 14:52:55 UTC (rev 73352)
+++ branches/JBPAPP_4_3_0_GA_JBPAPP-836/system/src/bin/run.sh 2008-05-13 15:00:23 UTC (rev 73353)
@@ -11,16 +11,18 @@
PROGNAME=`basename $0`
GREP="grep"
-# Set conf if specified, else set to default
+# Set conf if specified, else set to production
JBOSSCONF="production"
+CONF_SPECIFIED=false
arg_count=1
eval SWITCH=\${$arg_count}
-while [ ! -z $SWITCH ]
+while [ ! -z "$SWITCH" ]
do
if [ "$SWITCH" = "-c" ]; then
eval JBOSSCONF=\$`expr $arg_count + 1`
+ CONF_SPECIFIED=true
break
fi
@@ -28,6 +30,11 @@
eval SWITCH=\${$arg_count}
done
+if [ x${CONF_SPECIFIED} == "xfalse" ]
+then
+ set -- "-c" ${JBOSSCONF} $@
+fi
+
# Use the maximum available, or set MAX_FD != -1 to use that
MAX_FD="maximum"
More information about the jboss-cvs-commits
mailing list