airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject [4/6] airavata git commit: Added servers script parameter
Date Tue, 28 Jun 2016 21:06:33 GMT
Added servers script parameter


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/8e390839
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/8e390839
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/8e390839

Branch: refs/heads/develop
Commit: 8e390839587a31fd8adc40ea3e67f73d68459f2b
Parents: b673bcd
Author: Shameera Rathnayaka <shameerainfo@gmail.com>
Authored: Wed Jun 22 11:52:08 2016 -0400
Committer: Shameera Rathnayaka <shameerainfo@gmail.com>
Committed: Tue Jun 28 16:32:37 2016 -0400

----------------------------------------------------------------------
 .../src/main/resources/bin/airavata-server-start.sh         | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/8e390839/distribution/src/main/resources/bin/airavata-server-start.sh
----------------------------------------------------------------------
diff --git a/distribution/src/main/resources/bin/airavata-server-start.sh b/distribution/src/main/resources/bin/airavata-server-start.sh
index 44adad0..6e1e412 100644
--- a/distribution/src/main/resources/bin/airavata-server-start.sh
+++ b/distribution/src/main/resources/bin/airavata-server-start.sh
@@ -24,6 +24,7 @@ LOGO_FILE="logo.txt"
 JAVA_OPTS=""
 AIRAVATA_COMMAND=""
 EXTRA_ARGS=""
+SERVERS=""
 IS_DAEMON_MODE=false
 LOGO=true
 
@@ -41,7 +42,11 @@ do
             shift
         ;;
 	    api | gfac | orchestrator)
-		    AIRAVATA_COMMAND="${AIRAVATA_COMMAND} ${var}"
+	        if [ -z ${SERVERS} ] ; then
+	            SERVERS="${var}"
+	        else
+	            SERVERS="${SERVERS},${var}"
+	        fi
             shift
         ;;
         -d)
@@ -77,7 +82,7 @@ do
 done
 
 #add extra argument to the
-AIRAVATA_COMMAND="${AIRAVATA_COMMAND} ${EXTRA_ARGS}"
+AIRAVATA_COMMAND="--servers=${SERVERS} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}"
 
 #print logo file
 if ${LOGO} ; then


Mime
View raw message