8eb0cafeb0aa6687e02f45e92e60fdbad7c485c0
"systemctl --failed" suggested I pass "--all" to see units in the inactive state as well. I thought this was not very useful. If you explicitly asked for units in a specific state, then you already know you have narrowed it down. And if you ran "systemctl --state=inactive", it is even more strange to see this message. @keszybz suggests we probably don't want to suggest "list-unit-files" either :-). Let's only suggest that if the user passed "--state=inactive". Finally, this means the output for "systemctl --failed" could be just "0 loaded units listed". In this case, we don't need any highlight on that text, to distinguish it from the hint. This matches "list-unit-files". This also means we happen to avoid using red highlight, when there are zero failed units, as if that itself was a failure. @kesbyz pointed out that old behaviour was a bit weird.
systemd - System and Service Manager
Details
General information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list or join our IRC channel.
Stable branches with backported patches are available in the stable repo.
Languages
C
88.5%
Shell
5.7%
Python
4.6%
Meson
1.1%