summarylogtreecommitdiffstats
path: root/systemd-email
diff options
context:
space:
mode:
Diffstat (limited to 'systemd-email')
-rw-r--r--systemd-email11
1 files changed, 11 insertions, 0 deletions
diff --git a/systemd-email b/systemd-email
new file mode 100644
index 000000000000..bd1f9645ea22
--- /dev/null
+++ b/systemd-email
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+/usr/bin/sendmail -t <<ERRMAIL
+To: $1
+From: systemd <root@$HOSTNAME>
+Subject: $2
+Content-Transfer-Encoding: 8bit
+Content-Type: text/plain; charset=UTF-8
+
+$(systemctl status --full "$2")
+ERRMAIL