ansible-edda/playbooks/filesystem/common/usr/local/bin/systemd-mail-systemctl-status.j2

12 lines
276 B
Plaintext
Raw Normal View History

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