From 8e96605c2a4301a7c8e7bb5b1a2a4bc0b26daa34 Mon Sep 17 00:00:00 2001 From: shentao999 Date: Wed, 10 Apr 2019 14:38:03 +0800 Subject: Change database to postgreSQL9.5 Change-Id: I859d0ae4173d41e1055d88518aac0f9a7f50d01a Issue-ID: USECASEUI-236 Signed-off-by: zhangab --- standalone/src/main/assembly/bin/run.sh | 34 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 20 deletions(-) (limited to 'standalone/src/main/assembly/bin') diff --git a/standalone/src/main/assembly/bin/run.sh b/standalone/src/main/assembly/bin/run.sh index 95850849..66e0749b 100644 --- a/standalone/src/main/assembly/bin/run.sh +++ b/standalone/src/main/assembly/bin/run.sh @@ -15,31 +15,25 @@ # limitations under the License. # -DIRNAME=`dirname $0` -RUNHOME=`cd $DIRNAME/; pwd` -echo @RUNHOME@ $RUNHOME +main_path="/home/uui" +echo @main_path@ $main_path -echo "Starting mysql" -service mysql start +echo "Starting postgreSQL..." +service postgresql start sleep 10 -echo "grep initDB status" -ps -fe | grep initDB.sh -SCRIPT="/home/uui/resources/bin/initDB.sh" -chmod 755 $SCRIPT -$SCRIPT root root 3306 127.0.0.1 +echo "running usecase-ui database init script..." +dbScript="$main_path/resources/bin/initDB.sh" +chmod 755 $dbScript +$dbScript postgres postgres 127.0.0.1 5432 postgres -echo @JAVA_HOME@ $JAVA_HOME -JAVA="$JAVA_HOME/bin/java" -echo @JAVA@ $JAVA -main_path=$RUNHOME/../ -cd $main_path +JAVA_PATH="$JAVA_HOME/bin/java" JAVA_OPTS="-Xms50m -Xmx128m" -#port=9500 -#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$port,server=y,suspend=n" +echo @JAVA_PATH@ $JAVA_PATH echo @JAVA_OPTS@ $JAVA_OPTS -class_path="$main_path/:$main_path/usecase-ui-server.jar" -echo @class_path@ $class_path +jar_path="$main_path/usecase-ui-server.jar" +echo @jar_path@ $jar_path -"$JAVA" $JAVA_OPTS -classpath "$class_path" -jar "$main_path/usecase-ui-server.jar" +echo "Starting usecase-ui-server..." +$JAVA_PATH $JAVA_OPTS -classpath $jar_path -jar $jar_path -- cgit 1.2.3-korg