Scripts to help maintaining masternodes

in #altcoin6 years ago

Everyone, who owns a masternode, or few of them knows the dissapointing feeling, when you see your that it went missing overnight and you will have to wait again for few days without a reward.


prenos.jpg

Well, it happened to me on my Alqo masternode. If you don't know the Alqo coin, I strongly advise you to check it out. It is a great masternode coin from German team, planning to run an exchange in Q3 this year with FIAT pairs. They acquired all the licences already from Swiss govenment.

Anyway, back to masternodes. All of the masternodes that I was setting up were the same. I will not go into the details on how to install and run it, or which hosting to go with, I assume that you already have one if you are reading this.

I took the scripts from Smartcash masternode (another great masternode coin, worth checking out) and modified them for Alqo.

  1. https://raw.githubusercontent.com/mihavastic/alqonode_scripts/master/checkBlocks.sh

First one will check the block index that masternode registered, and comapre it to the saved one so we can detect if masternode got stuck and restart it.

  1. https://raw.githubusercontent.com/mihavastic/alqonode_scripts/master/checkalqod.sh

This one checks if alqo deamon is running and starts it if it is not found on the list.

  1. https://raw.githubusercontent.com/mihavastic/alqonode_scripts/master/clearDebug.sh

Clears debug log file. It can help a lot if your VPS has smaller drive.

All of these scripts were originaly written for smartcash and were just modified for Alqo. It can be easily adjusted for any masternode coin. Installation is easy, just create a folder, download the scripts and insert the rules into cron jobs so it runs on schedule.

  1. mkdir alqonode
  2. cd ~/alqonode/
  3. wget https://raw.githubusercontent.com/mihavastic/alqonode_scripts/master/checkBlocks.sh
  4. wget https://raw.githubusercontent.com/mihavastic/alqonode_scripts/master/checkalqod.sh
  5. wget https://raw.githubusercontent.com/mihavastic/alqonode_scripts/master/clearDebug.sh
  6. chmod 0700 ./checkBlocks.sh
  7. chmod 0700 ./checkalqod.sh
  8. chmod 0700 ./clearDebug.sh
  9. crontab -e
  10. */5 * * * * ~/alqonode/checkblocks.sh
  11. */30 * * * * ~/alqonode/checkalqod.sh
  12. 0 0 */2 * * ~/alqonode/clearDebug.sh
  13. service cron reload

And you are good to go.

If anyone needs any help, leave a comment. I will be more than happy to assist you.

Sort:  

well done very informative post

Imformative thing u just shared.. thanks.

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63315.26
ETH 2668.31
USDT 1.00
SBD 2.79