systemctl
Returns a list of the units, whether they are loaded, active, their sub and description.
systemctl is-failed
Returns a list of status only.
What is the syntax to return the details of the failed units?
You can use systemctl list-units --state=failed
to list all failed units.
The parameters for systemctl are documented in the man page systemctl(1).
--failed
is an alias for--state=failed
– sshow Aug 02 '17 at 14:57--failed
wasn't documented and marked as deprecated in the codebase (#5198) – cg909 Aug 02 '17 at 19:08list-units
and go withsystemctl --failed
by itself :) – sshow Aug 02 '17 at 20:22systemctl status
tells me the one+ things are failed, but wont tell me what. I need to run another command, not under thestatus
subcommand to find out. Shame. – Nathan Lilienthal Jun 22 '18 at 03:02