#!/bin/bash set -euo pipefail systemctl status "$1" | mail -s "service $1 failed on $( hostname )" root || true