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