systemctl-is-failed
Check if one or more systemd units have failed. tldr-pages
On Linux
Linux
Check if there are any failed units
systemctl is-failedIdentifyCheck if a unit or multiple units have failed
systemctl is-failed unit1 unit2 ...IdentifySuppress output and return only the exit code
systemctl is-failed unit --quietIdentifyCheck if a user unit has failed
systemctl is-failed unit --userIdentify