#!/bin/sh LOGGER="logger -t concierge -s" # systemd: list units in a failed state if type "systemctl" > /dev/null; then systemctl list-units --failed --plain --no-legend 2>&1 | $LOGGER fi