12345678910111213 |
- #!/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
- # dpkg: sanity and consistency checks (broken, half-installed, ...)
- if type "dpkg" > /dev/null; then
- dpkg --audit 2>&1 | $LOGGER
- fi
|