Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if ! pgrep syscoind
- then
- /usr/bin/syscoind --reindex
- now=$(date +"%D-%T: ")
- echo "$now:No daemon running" >> sysmonitor.log
- fi
- sleep 5
- if ! /usr/bin/syscoind getblocktemplate
- then
- killall syscoind
- sleep 15
- /usr/bin/syscoind --reindex
- now=$(date +"%D-%T: ")
- echo "$now:No getblocktemplate" >> sysmonitor.log
- fi
Add Comment
Please, Sign In to add comment