Infinity node expired solution
This guide will help you installing the script
The script will automatically restart your infinity node in case it stops or the blockchain files get corrupted.
Telegram and email notification options now included to get real time notifications.
The file will be downloaded and overwritten, if any.
Note: All crontab entries will be deleted and recreated.
Establish the VPS connection with the new user you created during the infinity node initial setup.
Please carefully copy and paste the following commands into the terminal screen and press enter.
bash crontab -r rm /home/$(whoami)/.sin/script.running sudo rm infinitynode_expired_solution.sh wget -O ~/infinitynode_expired_solution.sh https://raw.githubusercontent.com/cyberd3vil/sin-contrib/master/files/infinitynode_expired_solution/infinitynode_expired_solution.sh wget -O ~/Telegram.sh https://raw.githubusercontent.com/cyberd3vil/sin-contrib/master/files/infinitynode_expired_solution/Telegram.sh wget -O ~/email.sh https://raw.githubusercontent.com/cyberd3vil/sin-contrib/master/files/infinitynode_expired_solution/email.sh chmod +x infinitynode_expired_solution.sh email.sh Telegram.sh sudo apt-get update sudo apt-get install sendemail libio-socket-ssl-perl libnet-ssleay-perl -y (if asked about restart services, choose YES) echo "*/5 * * * * /home/$(whoami)/infinitynode_expired_solution.sh" | crontab
To configure email
sudo nano email.sh
<TO EMAIL>, smtp if you don't want to use google,
<PASSWORD> with your setting. Then change
Testing your email configuration
If you would like to test your email configuration use the following commands.
wget -O test_email.sh https://raw.githubusercontent.com/cyberd3vil/sin-contrib/master/files/infinitynode_expired_solution/test_email.sh chmod +x test_email.sh ./test_email.sh
To configure telegram
sudo nano Telegram.sh
Please setup telegram bot with BotFather on telegram to use with script.
<chatid> with telegram value for notification to work. Once configured, please change
Testing your telegram configuration
If you would like to test your telegram configuration use the following commands.
wget -O test_telegram.sh https://raw.githubusercontent.com/cyberd3vil/sin-contrib/master/files/infinitynode_expired_solution/test_telegram.sh chmod +x test_telegram.sh ./test_telegram.sh
You may want to follow the script log while updating (every 5 minutes)
Cltr and C to exit:
tail -f ~/.sin/sin_control.log
or read the entire log
PGUP keys to scroll,
Q to exit:
or use nano read entire log
PGUP keys to scroll,
Cltr and X to exit,
Cltr and _ then Ctrl and V to go to bottom
to clear the log