12 lines
230 B
Bash
Executable File
12 lines
230 B
Bash
Executable File
#!/bin/bash
|
|
|
|
/usr/sbin/sendmail -t <<ERRMAIL
|
|
To: $1
|
|
From: systemd <root@$HOSTNAME>
|
|
Subject: $2 failed on $(hostname)
|
|
Content-Transfer-Encoding: 8bit
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
$(systemctl status --full "$2")
|
|
ERRMAIL
|