This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 6f650547d6b change the description of daemon-confignode/datanode
(#11880)
6f650547d6b is described below
commit 6f650547d6b498058df1fca9d7ee1ce5b4413290
Author: YuFengLiu <[email protected]>
AuthorDate: Mon Jan 15 18:40:51 2024 +0800
change the description of daemon-confignode/datanode (#11880)
---
.../sbin/{register-confignode.sh => daemon-confignode.sh} | 10 ++++++----
.../sbin/{register-datanode.sh => daemon-datanode.sh} | 10 ++++++----
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git
a/iotdb-core/confignode/src/assembly/resources/sbin/register-confignode.sh
b/iotdb-core/confignode/src/assembly/resources/sbin/daemon-confignode.sh
similarity index 81%
rename from
iotdb-core/confignode/src/assembly/resources/sbin/register-confignode.sh
rename to iotdb-core/confignode/src/assembly/resources/sbin/daemon-confignode.sh
index 752995114b1..47be26da446 100644
--- a/iotdb-core/confignode/src/assembly/resources/sbin/register-confignode.sh
+++ b/iotdb-core/confignode/src/assembly/resources/sbin/daemon-confignode.sh
@@ -58,19 +58,21 @@ RestartPreventExitStatus=SIGKILL
WantedBy=multi-user.target
EOF
-echo "ConfigNode service registration successful!"
+echo "Daemon service of IoTDB ConfigNode has been successfully registered."
systemctl daemon-reload
-echo "Do you want to start IoTDB ConfigNode service ? y/n (default n)"
+echo "Do you want to start IoTDB ConfigNode ? y/n (default n)"
+echo "Or you can use 'systemctl start iotdb-confignode' to start it later."
read -r START_SERVICE
echo - - - - - - - - - -
if [[ "$START_SERVICE" =~ ^[Yy]$ ]]; then
- ${IOTDB_SBIN_HOME}/sbin/stop-confignode.sh >/dev/null 2>&1 &
+ "${IOTDB_SBIN_HOME}"/sbin/stop-confignode.sh >/dev/null 2>&1 &
systemctl start iotdb-confignode
fi
-echo "Do you want to start IoTDB ConfigNode service when startup ? y/n
(default n)"
+echo "Do you want to start IoTDB ConfigNode when system startup ? y/n (default
n)"
+echo "Or you can use 'systemctl enable iotdb-confignode' to enable it later."
read -r ADD_STARTUP
echo - - - - - - - - - -
if [[ "$ADD_STARTUP" =~ ^[Yy]$ ]]; then
diff --git
a/iotdb-core/datanode/src/assembly/resources/sbin/register-datanode.sh
b/iotdb-core/datanode/src/assembly/resources/sbin/daemon-datanode.sh
similarity index 81%
rename from iotdb-core/datanode/src/assembly/resources/sbin/register-datanode.sh
rename to iotdb-core/datanode/src/assembly/resources/sbin/daemon-datanode.sh
index e1ac0980a6b..a8cf37ca297 100644
--- a/iotdb-core/datanode/src/assembly/resources/sbin/register-datanode.sh
+++ b/iotdb-core/datanode/src/assembly/resources/sbin/daemon-datanode.sh
@@ -58,19 +58,21 @@ RestartPreventExitStatus=SIGKILL
WantedBy=multi-user.target
EOF
-echo "DataNode service registration successful!"
+echo "Daemon service of IoTDB DataNode has been successfully registered."
systemctl daemon-reload
-echo "Do you want to start IoTDB DataNode service ? y/n (default n)"
+echo "Do you want to start IoTDB DataNode ? y/n (default n)"
+echo "or you can use 'systemctl start iotdb-datanode' to start it later."
read -r START_SERVICE
echo - - - - - - - - - -
if [[ "$START_SERVICE" =~ ^[Yy]$ ]]; then
- ${IOTDB_SBIN_HOME}/sbin/stop-datanode.sh >/dev/null 2>&1 &
+ "${IOTDB_SBIN_HOME}"/sbin/stop-datanode.sh >/dev/null 2>&1 &
systemctl start iotdb-datanode
fi
-echo "Do you want to start IoTDB DataNode service when startup ? y/n (default
n)"
+echo "Do you want to start IoTDB DataNode when system startup ? y/n (default
n)"
+echo "or you can use 'systemctl enable iotdb-datanode' to enable it later."
read -r ADD_STARTUP
echo - - - - - - - - - -
if [[ "$ADD_STARTUP" =~ ^[Yy]$ ]]; then