urt-service/systemd-send-email

5 lines
98 B
Plaintext
Raw Normal View History

2016-01-14 18:35:58 +00:00
#!/bin/bash
/usr/bin/mail -s "[$HOSTNAME] $2 Failed" $1 <<EOF
$(systemctl status --full "$2")
EOF