Guest User

sysmonitor.sh - sakr -http://thepool.pw/sys

a guest
Aug 20th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if ! pgrep syscoind
  4. then
  5. /usr/bin/syscoind --reindex
  6. now=$(date +"%D-%T: ")
  7. echo "$now:No daemon running" >> sysmonitor.log
  8. fi
  9. sleep 5
  10. if ! /usr/bin/syscoind getblocktemplate
  11. then
  12. killall syscoind
  13. sleep 15
  14. /usr/bin/syscoind --reindex
  15. now=$(date +"%D-%T: ")
  16. echo "$now:No getblocktemplate" >> sysmonitor.log
  17. fi
Add Comment
Please, Sign In to add comment