mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
Merge pull request #2886 from fbuihuu/systemctl-list-units-inactive-state
systemctl: no need to pass --all if inactive is explicitly requested …
This commit is contained in:
@@ -340,6 +340,11 @@ static bool output_show_unit(const UnitInfo *u, char **patterns) {
|
||||
if (arg_all)
|
||||
return true;
|
||||
|
||||
if (!strv_isempty(arg_states))
|
||||
return true;
|
||||
|
||||
/* By default show all units except the ones in inactive
|
||||
* state and with no pending job */
|
||||
if (u->job_id > 0)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user