Advertisement
Guest User

navcoind monitoring

a guest
Jan 22nd, 2018
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. PROCESS="navcoind"
  4. RESULT=`pgrep ${PROCESS}`
  5.  
  6. if [ "${RESULT:-null}" = null ] && [ ! -f /var/tmp/navdaemoncheck ]; then
  7. echo "navcoind not running..." | mail -s "navcoind dead" you@email.com
  8. touch /var/tmp/navdaemoncheck
  9. elif [ "${RESULT:-null}" != null ]; then
  10. rm -f /var/tmp/navdaemoncheck
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement