e68537f0ba1a4433ecdf58e609b1701ed7091abc
Let's make use of unit_active_or_pending() where we can. Note that this change changes beaviour in one specific case: when shutdown.target is active we'll now also return that the system is in "stopping" state, not only when we try to get into it. That makes sense as shutdown.target is ordered before the actually shutdown units such as "systemd-poweroff.service", and if the state is queried between reaching those we should also report "stopping".
systemd - System and Service Manager
Details
General information about systemd can be found in the systemd Wiki.
Information about build requirements are 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 file for information 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.
Languages
C
88.5%
Shell
5.7%
Python
4.6%
Meson
1.1%