@@ -1 +1 @@ | |||||
Subproject commit 89f3f28f8ac2d3f5bc3a85f3bf5d142e7fb281f8 | |||||
Subproject commit b43f3c9eed822b96e6fe580903fd0d0b65056557 |
@@ -34,8 +34,19 @@ GATEWAY_CONFIG=$CONFIG_PATH/gateway.conf | |||||
#application-gw.properties完整路径 | #application-gw.properties完整路径 | ||||
SPRING_CONFIG=$CONFIG_PATH/application-gw.properties | SPRING_CONFIG=$CONFIG_PATH/application-gw.properties | ||||
JDK_VERSION=$(java -version 2>&1 | sed '1!d' | sed -e 's/"//g' | awk '{print $3}') | |||||
if [[ $JDK_VERSION == 1.8.* ]]; then | |||||
opens="" | |||||
else | |||||
opens="--add-opens java.base/java.lang=ALL-UNNAMED" | |||||
opens=$opens" --add-opens java.base/java.util=ALL-UNNAMED" | |||||
opens=$opens" --add-opens java.base/java.net=ALL-UNNAMED" | |||||
opens=$opens" --add-opens java.base/sun.security.x509=ALL-UNNAMED" | |||||
opens=$opens" --add-opens java.base/sun.security.util=ALL-UNNAMED" | |||||
fi | |||||
#定义程序启动的参数 | #定义程序启动的参数 | ||||
JAVA_OPTS="-jar -server -Xms1024m -Xmx1024m -Djdchain.log=$APP_HOME/logs -Dlog4j.configurationFile=file:$APP_HOME/config/log4j2-gw.xml" | |||||
JAVA_OPTS="-jar -server -Xms1024m -Xmx1024m $opens -Djdchain.log=$APP_HOME/logs -Dlog4j.configurationFile=file:$APP_HOME/config/log4j2-gw.xml" | |||||
#APP具体相关命令 | #APP具体相关命令 | ||||
APP_CMD=$APP_LIB_PATH/$APP_JAR" -c "$GATEWAY_CONFIG" -sp "$SPRING_CONFIG | APP_CMD=$APP_LIB_PATH/$APP_JAR" -c "$GATEWAY_CONFIG" -sp "$SPRING_CONFIG | ||||
@@ -25,11 +25,6 @@ | |||||
<artifactId>runtime-modular-booter</artifactId> | <artifactId>runtime-modular-booter</artifactId> | ||||
<version>${core.version}</version> | <version>${core.version}</version> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>com.jd.blockchain</groupId> | |||||
<artifactId>manager-booter</artifactId> | |||||
<version>${core.version}</version> | |||||
</dependency> | |||||
<dependency> | <dependency> | ||||
<groupId>com.jd.blockchain</groupId> | <groupId>com.jd.blockchain</groupId> | ||||
<artifactId>storage-redis</artifactId> | <artifactId>storage-redis</artifactId> | ||||
@@ -43,18 +43,6 @@ | |||||
<include>com.jd.blockchain:deploy-peer</include> | <include>com.jd.blockchain:deploy-peer</include> | ||||
</includes> | </includes> | ||||
</dependencySet> | </dependencySet> | ||||
<dependencySet> | |||||
<unpack>false</unpack> | |||||
<useProjectArtifact>true</useProjectArtifact> | |||||
<outputDirectory>manager</outputDirectory> | |||||
<includes> | |||||
<include>com.jd.blockchain:manager-booter</include> | |||||
<include>com.jd.blockchain:manager-model</include> | |||||
<include>com.jd.blockchain:manager-service</include> | |||||
<include>com.jd.blockchain:manager-web</include> | |||||
<include>com.jd.blockchain:ump-explorer</include> | |||||
</includes> | |||||
</dependencySet> | |||||
<dependencySet> | <dependencySet> | ||||
<unpack>false</unpack> | <unpack>false</unpack> | ||||
<useProjectArtifact>true</useProjectArtifact> | <useProjectArtifact>true</useProjectArtifact> | ||||
@@ -70,11 +58,6 @@ | |||||
<exclude>com.jd.blockchain:runtime-modular-booter</exclude> | <exclude>com.jd.blockchain:runtime-modular-booter</exclude> | ||||
<exclude>com.jd.blockchain:peer</exclude> | <exclude>com.jd.blockchain:peer</exclude> | ||||
<exclude>com.jd.blockchain:deployment-peer</exclude> | <exclude>com.jd.blockchain:deployment-peer</exclude> | ||||
<exclude>com.jd.blockchain:manager-booter</exclude> | |||||
<exclude>com.jd.blockchain:manager-model</exclude> | |||||
<exclude>com.jd.blockchain:manager-service</exclude> | |||||
<exclude>com.jd.blockchain:manager-web</exclude> | |||||
<exclude>com.jd.blockchain:ump-explorer</exclude> | |||||
</excludes> | </excludes> | ||||
</dependencySet> | </dependencySet> | ||||
@@ -2,8 +2,18 @@ | |||||
HOME=$(cd `dirname $0`;cd ../; pwd) | HOME=$(cd `dirname $0`;cd ../; pwd) | ||||
boot_file=$(ls $HOME/libs | grep tools-initializer-booter-) | boot_file=$(ls $HOME/libs | grep tools-initializer-booter-) | ||||
JDK_VERSION=$(java -version 2>&1 | sed '1!d' | sed -e 's/"//g' | awk '{print $3}') | |||||
if [[ $JDK_VERSION == 1.8.* ]]; then | |||||
opens="" | |||||
else | |||||
opens="--add-opens java.base/java.lang=ALL-UNNAMED" | |||||
opens=$opens" --add-opens java.base/java.util=ALL-UNNAMED" | |||||
opens=$opens" --add-opens java.base/java.net=ALL-UNNAMED" | |||||
opens=$opens" --add-opens java.base/sun.security.x509=ALL-UNNAMED" | |||||
opens=$opens" --add-opens java.base/sun.security.util=ALL-UNNAMED" | |||||
fi | |||||
if [ ! -n "$boot_file" ]; then | if [ ! -n "$boot_file" ]; then | ||||
echo "tools-initializer-booter is null" | echo "tools-initializer-booter is null" | ||||
else | else | ||||
java -jar -server -Djdchain.log=$HOME/logs $HOME/libs/$boot_file -l $HOME/config/init/local.conf -i $HOME/config/init/ledger.init $* | |||||
java -jar -server $opens -Djdchain.log=$HOME/logs $HOME/libs/$boot_file -l $HOME/config/init/local.conf -i $HOME/config/init/ledger.init $* | |||||
fi | fi |
@@ -1,21 +0,0 @@ | |||||
#!/bin/bash | |||||
#启动Home路径 | |||||
BOOT_HOME=$(cd `dirname $0`;cd ../; pwd) | |||||
#获取进程PID | |||||
PID=`ps -ef | grep $BOOT_HOME/manager/manager-booter | grep -v grep | awk '{print $2}'` | |||||
#通过Kill命令将进程杀死 | |||||
if [ -z "$PID" ]; then | |||||
echo "================================" | |||||
echo "WARN: Unable to find JD Chain Manager PID($PID)." | |||||
echo "================================" | |||||
else | |||||
echo "Stopping Manager (PID = $PID) ......" | |||||
kill $PID | |||||
while kill -0 $PID 2>/dev/null; do sleep 1; done | |||||
echo "================================" | |||||
echo "Success" | |||||
echo "================================" | |||||
fi |
@@ -1,19 +0,0 @@ | |||||
#!/bin/bash | |||||
HOME=$(cd `dirname $0`;cd ../; pwd) | |||||
UMP=$(ls $HOME/manager | grep manager-booter-) | |||||
PROC_INFO=$HOME/manager/$UMP" -home "$HOME" -p 8000" | |||||
#echo $PROC_INFO | |||||
#get PID | |||||
PID=`ps -ef | grep "$PROC_INFO" | grep -v grep | awk '{print $2}'` | |||||
#echo $PID | |||||
if [[ ! -z $PID ]] | |||||
then | |||||
echo "process already exists,please check... If necessary, you should kill the process first." | |||||
exit | |||||
fi | |||||
if [ ! -n "UMP" ]; then | |||||
echo "JDChain Manager Is Null !!!" | |||||
else | |||||
nohup java -jar -server -Djdchain.log=$HOME $PROC_INFO $* >$HOME/bin/jump.out 2>&1 & | |||||
fi |
@@ -45,8 +45,19 @@ LEDGER_BINDING_CONFIG=$CONFIG_PATH/ledger-binding.conf | |||||
#application-peer.properties完整路径 | #application-peer.properties完整路径 | ||||
SPRING_CONFIG=$CONFIG_PATH/application-peer.properties | SPRING_CONFIG=$CONFIG_PATH/application-peer.properties | ||||
JDK_VERSION=$(java -version 2>&1 | sed '1!d' | sed -e 's/"//g' | awk '{print $3}') | |||||
if [[ $JDK_VERSION == 1.8.* ]]; then | |||||
opens="" | |||||
else | |||||
opens="--add-opens java.base/java.lang=ALL-UNNAMED" | |||||
opens=$opens" --add-opens java.base/java.util=ALL-UNNAMED" | |||||
opens=$opens" --add-opens java.base/java.net=ALL-UNNAMED" | |||||
opens=$opens" --add-opens java.base/sun.security.x509=ALL-UNNAMED" | |||||
opens=$opens" --add-opens java.base/sun.security.util=ALL-UNNAMED" | |||||
fi | |||||
#定义程序启动的参数 | #定义程序启动的参数 | ||||
JAVA_OPTS="-jar -server -Xms2048m -Xmx2048m -Djdchain.log=$APP_HOME/logs -Dlog4j.configurationFile=file:$APP_HOME/config/log4j2-peer.xml" | |||||
JAVA_OPTS="-jar -server -Xms2048m -Xmx2048m $opens -Djdchain.log=$APP_HOME/logs -Dlog4j.configurationFile=file:$APP_HOME/config/log4j2-peer.xml" | |||||
#APP具体相关命令 | #APP具体相关命令 | ||||
APP_CMD=$APP_SYSTEM_PATH/$APP_JAR" -home="$APP_HOME" -c "$LEDGER_BINDING_CONFIG" -p "$WEB_PORT" -sp "$SPRING_CONFIG | APP_CMD=$APP_SYSTEM_PATH/$APP_JAR" -home="$APP_HOME" -c "$LEDGER_BINDING_CONFIG" -p "$WEB_PORT" -sp "$SPRING_CONFIG | ||||
@@ -1 +1 @@ | |||||
Subproject commit 371b776aa045d3fac3ebc31b2ed7c3b4e98c19f8 | |||||
Subproject commit 17000891306cfa3ccd6b32cf8666531ef5ce001f |
@@ -1 +1 @@ | |||||
Subproject commit 44c1cb2e9b9026229a09256491f2876778fb4c76 | |||||
Subproject commit dd5c3872ecbcbedb4c1d6fd6a34350e715fcec10 |
@@ -1 +1 @@ | |||||
Subproject commit e3abd91fd2babdee6db389a74369d0afb5f392a6 | |||||
Subproject commit 66876f594a29c1b0bb5918aae76c3a7d13ba6dce |