Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- PROCESS="navcoind"
- RESULT=`pgrep ${PROCESS}`
- if [ "${RESULT:-null}" = null ] && [ ! -f /var/tmp/navdaemoncheck ]; then
- echo "navcoind not running..." | mail -s "navcoind dead" you@email.com
- touch /var/tmp/navdaemoncheck
- elif [ "${RESULT:-null}" != null ]; then
- rm -f /var/tmp/navdaemoncheck
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement