btcnadzor / mina-utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mina-utils

Node auto restarter

Automatically restarts container if node hangs

Requirements
sudo apt install -y curl bc jq && sudo usermod -aG docker $USER

Simple run
curl -s https://raw.githubusercontent.com/c29r3/mina-utils/main/node-restarter.sh | bash

Launch with notifications in telegram
curl -s https://raw.githubusercontent.com/c29r3/mina-utils/main/node-restarter.sh | bash -s -- <TG_TOKEN> <TG_CHAT_ID>

Add it to cron:
crontab -l | { cat; echo "*/10 * * * * curl -s https://raw.githubusercontent.com/c29r3/mina-utils/main/node-restarter.sh | bash"; } | crontab -

About


Languages

Language:Shell 100.0%