hmn/server/adminmailer.sh

10 lines
166 B
Bash
Raw Normal View History

2021-09-04 18:21:11 +00:00
#!/bin/bash
2021-09-04 18:48:47 +00:00
if [ $SERVICE_RESULT == "success" ]; then
exit
fi
2021-09-04 18:21:11 +00:00
/home/hmn/hmn/adminmailer/adminmailer "[$1] Status changed" <<ERRMAIL
$(service "$1" status)
ERRMAIL