computer-playbook/roles/native-systemd-email/templates/systemd-email.sh.j2

12 lines
230 B
Plaintext
Raw Normal View History

#!/bin/bash
/usr/bin/sendmail -t <<ERRMAIL
To: {{administrator_email}}
From: systemd <{{system_email}}>
Subject: $1
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
$(systemctl status --full "$1")
ERRMAIL