airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject airavata git commit: User neet to provide valid component server comand with start script
Date Fri, 08 Jul 2016 19:29:49 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 461f7ec48 -> 2d398cf35


User neet to provide valid component server comand with start script


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

Branch: refs/heads/master
Commit: 2d398cf3573f6001e972d54fbb90d377ecd9ad01
Parents: 461f7ec
Author: Shameera Rathnayaka <shameerainfo@gmail.com>
Authored: Fri Jul 8 15:29:08 2016 -0400
Committer: Shameera Rathnayaka <shameerainfo@gmail.com>
Committed: Fri Jul 8 15:29:08 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/2d398cf3/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 83383bb..a4089d9 100644
--- a/distribution/src/main/resources/bin/airavata-server-start.sh
+++ b/distribution/src/main/resources/bin/airavata-server-start.sh
@@ -43,7 +43,7 @@ do
             JAVA_OPTS="${JAVA_OPTS} -Djava.security.manager -Djava.security.policy=${AIRAVATA_HOME}/conf/axis2.policy
-Daxis2.home=${AIRAVATA_HOME}"
             shift
         ;;
-	    apiserver | gfac | orchestrator)
+	    apiserver | gfac | orchestrator | credentialstore)
 	        if [ -z ${SERVERS} ] ; then
 	            SERVERS="${var}"
 	        else
@@ -94,7 +94,12 @@ done
 if ${IS_SUBSET} ; then
     AIRAVATA_COMMAND="--servers=${SUBSET} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}"
 else
-    AIRAVATA_COMMAND="--servers=${SERVERS} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}"
+    if [ -z ${SERVERS} ] ; then
+        echo "You should provide at least one server component to start the airavata server.
Please use -h option to get more details."
+        exit -1
+    else
+        AIRAVATA_COMMAND="--servers=${SERVERS} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}"
+    fi
 fi
 
 #print logo file


Mime
View raw message