Created
March 3, 2023 11:36
-
-
Save Jiu-hong/0f604c39f877a8df39f8a26fa6a02ed4 to your computer and use it in GitHub Desktop.
send log when node is down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| while true | |
| do | |
| STATUS="$(systemctl is-active casper-node-launcher.service)" | |
| if [ "${STATUS}" = "active" ]; then | |
| # send logs | |
| sudo logrotate -f /etc/logrotate.d/casper-node | |
| curl -sSf https://cnm.casperlabs.io/debug_upload_script | bash > done.txt | |
| break | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment