Bash script that monitors a service running on a computer and emails you when it goes down/up