Last active
December 14, 2015 08:29
-
-
Save jordanmerrick/5057900 to your computer and use it in GitHub Desktop.
Notification if Dropbox CLI stops running in CentOS
This file contains 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
## Dropbox email notification if the daemon has stopped running | |
## Change [email protected] to the address you want to email. | |
./dropbox.py status | grep -q 'running' && printf "Dropbox has stopped running on $HOSTNAME.\nLast checked $(date)\n" | mail -s "Dropbox Failure Notification on $HOSTNAME" [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment