hmn/server/adminmailer.sh

10 lines
149 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
adminmailer "[$1] Status changed" <<ERRMAIL
2021-09-04 18:59:03 +00:00
$(systemctl status --full "$1")
2021-09-04 18:21:11 +00:00
ERRMAIL