This repository has been archived on 2024-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
urt-service/systemd-send-email

5 lines
98 B
Bash
Executable File

#!/bin/bash
/usr/bin/mail -s "[$HOSTNAME] $2 Failed" $1 <<EOF
$(systemctl status --full "$2")
EOF