This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
hmn/server/adminmailer.sh

10 lines
149 B
Bash
Executable File

#!/bin/bash
if [ $SERVICE_RESULT == "success" ]; then
exit
fi
adminmailer "[$1] Status changed" <<ERRMAIL
$(systemctl status --full "$1")
ERRMAIL