12 lines
276 B
Plaintext
12 lines
276 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
/usr/sbin/sendmail -t <<SYSTEMDMAIL
|
||
|
To: root
|
||
|
From: $(whoami).systemd <systemd>
|
||
|
Subject: systemctl --user status $1 on {{ ansible_hostname }}
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
||
|
$(systemctl --user status --full "$1")
|
||
|
SYSTEMDMAIL
|