[jboss-cvs] JBossAS SVN: r73347 - branches/JBPAPP_4_2_0_GA_CP/system/src/bin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue May 13 09:38:34 EDT 2008
Author: skoussou at redhat.com
Date: 2008-05-13 09:38:34 -0400 (Tue, 13 May 2008)
New Revision: 73347
Modified:
branches/JBPAPP_4_2_0_GA_CP/system/src/bin/run.sh
Log:
JBPAPP-835 - Modified run.sh
Modified: branches/JBPAPP_4_2_0_GA_CP/system/src/bin/run.sh
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/system/src/bin/run.sh 2008-05-13 13:02:31 UTC (rev 73346)
+++ branches/JBPAPP_4_2_0_GA_CP/system/src/bin/run.sh 2008-05-13 13:38:34 UTC (rev 73347)
@@ -11,8 +11,9 @@
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}
@@ -21,6 +22,7 @@
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