concierge-status 327 B

12345678910111213
  1. #!/bin/sh
  2. LOGGER="logger -t concierge -s"
  3. # systemd: list units in a failed state
  4. if type "systemctl" > /dev/null; then
  5. systemctl list-units --failed --plain --no-legend 2>&1 | $LOGGER
  6. fi
  7. # dpkg: sanity and consistency checks (broken, half-installed, ...)
  8. if type "dpkg" > /dev/null; then
  9. dpkg --audit 2>&1 | $LOGGER
  10. fi