diff --git a/telegram_monitor_0.2.sh b/telegram_monitor_0.3.sh similarity index 93% rename from telegram_monitor_0.2.sh rename to telegram_monitor_0.3.sh index f06c678..dc8f3a2 100644 --- a/telegram_monitor_0.2.sh +++ b/telegram_monitor_0.3.sh @@ -9,6 +9,7 @@ while node=$(pgrep -f "$service") >/dev/null # checks if service has starte do # if YES stay here forever clear # clean the terminal echo "Node is running with PID=$node" # and print a message + sleep 1 # wait 1 second to avoid cloging the CPU done # if NOT echo -e "\n\t\tNode stopped\n" # print messages echo -e "Sending Telegram message...\n"