summarylogtreecommitdiffstats
path: root/systemd-email
blob: bd1f9645ea222fdb4433903f0f80008dee656992 (plain)
1
2
3
4
5
6
7
8
9
10
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