GithubHelp home page GithubHelp logo

mina's Introduction

mina restarter

Перезагрузка ноды:

  • при отставании
  • при статусах CONNECTING, LISTENING, OFFLINE, BOOTSTRAP, CATCHUP (если нода работает дольше отведенного на загрузку времени, настройка в файле m.sh)

Загрузка

cd
mkdir mrestart && cd mrestart
wget https://raw.githubusercontent.com/w0rldwind/mina/main/m.sh
wget https://raw.githubusercontent.com/w0rldwind/mina/main/alert.py
wget https://raw.githubusercontent.com/w0rldwind/mina/main/id.py

chmod +x m.sh
chmod +x alert.py
chmod +x id.py

Подготовка

apt update
apt install python3-pip
pip3 install pyTelegramBotAPI
apt install jq
  1. Регистрация бота у @BotFather
  2. Добавить токен в alert.py и id.py
  3. Запустить python3 id.py и написать своему боту "ID". Полученный id добавить в alert.py
  4. Добавление в планировщик
crontab -e
*/5 * * * * cd ~/mrestart && ./m.sh

Настройки в файле m.sh

  • Имя ноды
  • Настройка api
  • Время на загрузку ноды
  • Команда перезагрузки

mina's People

Contributors

w0rldwind avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

kakashi0x0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.