Skip to content

Commit

Permalink
refactor: 💡 move shutdown intro text
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Jan 18, 2024
1 parent 290d0fa commit 4b4b9dc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scripts/shutdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@ echo "★★★★★★★★★ 🐤 Twitter https://twitter.com/fleek_net"
echo "★★★★★★★★★ 🎨 Ascii art by https://www.asciiart.eu"
echo

echo "In order to shutdown gracefully, the process conducts a check to determine when it's more appropriate to shutdown the node."
echo "This helps ensure that node reputations are not penalized, e.g. when actively participating in the network and shutting down prematurely."
echo
echo "Thus, for nodes that are actively participating, an opt-out transaction puts the node offline and only shutdown after the epoch ends."
echo "On the other hand, a non-participating node (that is offline in the timely epoch) can be shut down immediately."
echo
echo "To summarize, this tool automates the shutdown process gracefully for the node operator, who would otherwise have to do it manually."
echo

quitProcess() {
printf "\n\n🦖 The node shutdown process has terminated. Warning, the node shutdown might not have fully completed!\n\n"

Expand All @@ -73,6 +64,15 @@ spin() {

exec < /dev/tty;

echo "In order to shutdown gracefully, the process conducts a check to determine when it's more appropriate to shutdown the node."
echo "This helps ensure that node reputations are not penalized, e.g. when actively participating in the network and shutting down prematurely."
echo
echo "Thus, for nodes that are actively participating, an opt-out transaction puts the node offline and only shutdown after the epoch ends."
echo "On the other hand, a non-participating node (that is offline in the timely epoch) can be shut down immediately."
echo
echo "To summarize, this tool automates the shutdown process gracefully for the node operator, who would otherwise have to do it manually."
echo

read -rp "Press ENTER process continue..."

echo
Expand Down

0 comments on commit 4b4b9dc

Please sign in to comment.