summaryrefslogtreecommitdiffstats
path: root/distribution
diff options
context:
space:
mode:
authorYuanHu <yuan.hu1@zte.com.cn>2018-02-13 16:34:27 +0800
committerYuanHu <yuan.hu1@zte.com.cn>2018-02-13 16:34:27 +0800
commit6d4483e2fd94956f0356202ad2800fa7df36f90b (patch)
tree4607e9bed526b7c7820c4b6a9324852cd38aea3c /distribution
parent6c1ec540bba87cd5ee2ce478d0f2a2c053d7444a (diff)
Add run.sh for starting the micro-service
Add shell script (run.sh) for starting the micro-service Issue-ID: SDC-408 Change-Id: Ieb2aee701c82be5a3f7986e72eda8f7505e30997 Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
Diffstat (limited to 'distribution')
-rw-r--r--distribution/src/main/assembly/bin/run.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/distribution/src/main/assembly/bin/run.sh b/distribution/src/main/assembly/bin/run.sh
new file mode 100644
index 00000000..15f96598
--- /dev/null
+++ b/distribution/src/main/assembly/bin/run.sh
@@ -0,0 +1,31 @@
+#
+# Copyright (c) 2017 ZTE Corporation.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# and the Apache License 2.0 which both accompany this distribution,
+# and are available at http://www.eclipse.org/legal/epl-v10.html
+# and http://www.apache.org/licenses/LICENSE-2.0
+#
+# Contributors:
+# ZTE - initial API and implementation and/or initial documentation
+#
+
+DIRNAME=`dirname $0`
+RUNHOME=`cd $DIRNAME/; pwd`
+echo @RUNHOME@ $RUNHOME
+
+echo @JAVA_HOME@ $JAVA_HOME
+JAVA="$JAVA_HOME/bin/java"
+echo @JAVA@ $JAVA
+main_path=$RUNHOME/../
+cd $main_path
+JAVA_OPTS="-Xms50m -Xmx128m"
+port=12345
+#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$port,server=y,suspend=n"
+echo @JAVA_OPTS@ $JAVA_OPTS
+
+class_path="$main_path/:$main_path/sdc-workflow-designer.jar"
+echo @class_path@ $class_path
+
+"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.sdc.workflowdesigner.WorkflowDesignerApp server "$main_path/conf/workflow-designer.yml"
+