ansible-edda/root/usr/local/bin/systemd-mail.j2

12 lines
216 B
Plaintext
Raw Normal View History

2022-08-28 04:01:22 +02:00
#!/bin/sh
/usr/sbin/sendmail -t <<SYSTEMDMAIL
To: root
From: systemd <{{ hostname }}>
Subject: $1
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
$(systemctl status --full "$1")
SYSTEMDMAIL