Skip to content

Commit

Permalink
Improve some descriptions of daemon-script
Browse files Browse the repository at this point in the history
  • Loading branch information
l2280212 authored Jan 19, 2024
1 parent 771c096 commit dd48a57
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,18 @@ EOF
echo "Daemon service of IoTDB ConfigNode has been successfully registered."

systemctl daemon-reload

echo "Do you want to start IoTDB ConfigNode ? y/n (default y)"
echo "Or you can use 'systemctl start iotdb-confignode' to start it later."
echo
echo "Do you want to execute 'systemctl start iotdb-confignode'? y/n (default y)"
read -r START_SERVICE
echo - - - - - - - - - -
if [[ -z "$START_SERVICE" || "$START_SERVICE" =~ ^[Yy]$ ]]; then
"${IOTDB_SBIN_HOME}"/sbin/stop-confignode.sh >/dev/null 2>&1 &
systemctl start iotdb-confignode
echo "Executed successfully."
fi

echo "Do you want to start IoTDB ConfigNode when system startup ? y/n (default y)"
echo "Or you can use 'systemctl enable iotdb-confignode' to enable it later."
echo
echo "Do you want to execute 'systemctl enable iotdb-confignode' to start at boot? y/n (default y)"
read -r ADD_STARTUP
echo - - - - - - - - - -
if [[ -z "$ADD_STARTUP" || "$ADD_STARTUP" =~ ^[Yy]$ ]]; then
systemctl enable iotdb-confignode
else
systemctl disable iotdb-confignode
systemctl enable iotdb-confignode >/dev/null 2>&1
echo "Executed successfully."
fi
18 changes: 7 additions & 11 deletions iotdb-core/datanode/src/assembly/resources/sbin/daemon-datanode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,18 @@ EOF
echo "Daemon service of IoTDB DataNode has been successfully registered."

systemctl daemon-reload

echo "Do you want to start IoTDB DataNode ? y/n (default y)"
echo "Or you can use 'systemctl start iotdb-datanode' to start it later."
echo
echo "Do you want to execute 'systemctl start iotdb-datanode'? y/n (default y)"
read -r START_SERVICE
echo - - - - - - - - - -
if [[ -z "$START_SERVICE" || "$START_SERVICE" =~ ^[Yy]$ ]]; then
"${IOTDB_SBIN_HOME}"/sbin/stop-datanode.sh >/dev/null 2>&1 &
systemctl start iotdb-datanode
echo "Executed successfully."
fi

echo "Do you want to start IoTDB DataNode when system startup ? y/n (default y)"
echo "Or you can use 'systemctl enable iotdb-datanode' to enable it later."
echo
echo "Do you want to execute 'systemctl enable iotdb-datanode' to start at boot? y/n (default y)"
read -r ADD_STARTUP
echo - - - - - - - - - -
if [[ -z "$ADD_STARTUP" || "$ADD_STARTUP" =~ ^[Yy]$ ]]; then
systemctl enable iotdb-datanode
else
systemctl disable iotdb-datanode
systemctl enable iotdb-datanode >/dev/null 2>&1
echo "Executed successfully."
fi
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ datanode_address_list=
ssh_account=root
# ssh login port
ssh_port=22
# iotdb deployment directory (iotdb will be deployed to the target node in this folder)
# iotdb deployment directory (iotdb should be deployed to the following folders in all machines)
confignode_deploy_path=
datanode_deploy_path=

0 comments on commit dd48a57

Please sign in to comment.