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
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