This script helps you perform an automatic rollback when the Airchain node encounters an RPC problem.
- A Unix-based operating system (Linux, macOS)
wget
installedscreen
installed
-
Download the Script
Download the script using
wget
:wget https://raw.githubusercontent.com/jericko8/Automated-Rollback-when-RPC-error-on-Airchain-Node/main/monitoring_log.sh
-
Make the Script Executable
After downloading, ensure the script is executable:
chmod +x monitoring_log.sh
-
Create a Screen Session
Create a new screen session to run the program:
screen -S monitoring
-
Run the Script
Once in the screen session, you can run the script:
-
If the script is in the current directory:
./monitoring_log.sh
-
If the script is in a different directory, provide the path:
/path/to/directory/monitoring_log.sh
-
-
To detach from the screen session while leaving the script running, press
Ctrl + A
, thenD
. -
To reattach to the screen session later, use:
screen -r monitoring
Feel free to fork this repository, make improvements, and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License. See the LICENSE file for details.
### Example Code Block
# Download the script
wget https://raw.githubusercontent.com/jericko8/Automated-Rollback-when-RPC-error-on-Airchain-Node/main/monitoring_log.sh
# Make it executable
chmod +x monitoring_log.sh
# Create a screen session
screen -S monitoring
# Run the script
./monitoring_log.sh
https://github.com/jericko8/rollback.git