ansible-edda/root/usr/local/sbin/systemd-mail-systemctl-status.j2
2022-08-30 20:27:32 +02:00

12 lines
244 B
Django/Jinja

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