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