Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down