You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ca...@apache.org on 2022/10/31 04:19:55 UTC

[iotdb] branch beyyes/master created (now 509644699a)

This is an automated email from the ASF dual-hosted git repository.

caogaofei pushed a change to branch beyyes/master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at 509644699a fix shell for stop node

This branch includes the following new commits:

     new 509644699a fix shell for stop node

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: fix shell for stop node

Posted by ca...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

caogaofei pushed a commit to branch beyyes/master
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 509644699a4ed052f262b80b21a2ac5da3e61e65
Author: Beyyes <cg...@foxmail.com>
AuthorDate: Mon Oct 31 12:19:38 2022 +0800

    fix shell for stop node
---
 confignode/src/assembly/resources/sbin/stop-confignode.sh | 2 +-
 server/src/assembly/resources/sbin/stop-datanode.sh       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/confignode/src/assembly/resources/sbin/stop-confignode.sh b/confignode/src/assembly/resources/sbin/stop-confignode.sh
index 9961ffd623..e3d15b0612 100644
--- a/confignode/src/assembly/resources/sbin/stop-confignode.sh
+++ b/confignode/src/assembly/resources/sbin/stop-confignode.sh
@@ -19,7 +19,7 @@
 #
 
 CONFIGNODE_CONF="$(dirname "$0")/../conf"
-internal_port=$(sed '/^internal_port=/!d;s/.*=//' ${CONFIGNODE_CONF}/iotdb-confignode.properties)
+internal_port=$(sed '/^cn_internal_port=/!d;s/.*=//' ${CONFIGNODE_CONF}/iotdb-confignode.properties)
 
 if type lsof >/dev/null 2>&1; then
   PID=$(lsof -t -i:${internal_port} -sTCP:LISTEN)
diff --git a/server/src/assembly/resources/sbin/stop-datanode.sh b/server/src/assembly/resources/sbin/stop-datanode.sh
index 8dbf1d67fb..17a4bd5aa7 100644
--- a/server/src/assembly/resources/sbin/stop-datanode.sh
+++ b/server/src/assembly/resources/sbin/stop-datanode.sh
@@ -19,7 +19,7 @@
 #
 
 DATANODE_CONF="`dirname "$0"`/../conf"
-rpc_port=`sed '/^rpc_port=/!d;s/.*=//' ${DATANODE_CONF}/iotdb-datanode.properties`
+rpc_port=`sed '/^dn_rpc_port=/!d;s/.*=//' ${DATANODE_CONF}/iotdb-datanode.properties`
 
 if  type lsof > /dev/null 2>&1 ; then
   PID=$(lsof -t -i:${rpc_port} -sTCP:LISTEN)