diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-03-11 13:26:29 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-03-12 11:25:26 +0100 |
commit | ca66b69d5bdc9d3bf34cdc53bb600f88ef6a2c87 (patch) | |
tree | 38423c03c5abab14e01ff62f4a8ac751d3949be2 /shell-completion | |
parent | a729e42d4bf17174b7fe03d65589b8c54e907fe8 (diff) | |
download | systemd-ca66b69d5bdc9d3bf34cdc53bb600f88ef6a2c87.tar.gz |
bash-completion: also suggest units in reloading or activating
Closes #11942.
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/systemctl.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in index 0e58e2ba4c..d73f956a3f 100644 --- a/shell-completion/bash/systemctl.in +++ b/shell-completion/bash/systemctl.in @@ -84,10 +84,13 @@ __get_restartable_units () { __get_stoppable_units () { # filter out masked and not-found - __filter_units_by_properties $1 ActiveState=active,CanStop=yes $( + local units=$( { __get_not_masked_unit_files $1 $2 __get_active_units $1 $2 } | sort -u ) + __filter_units_by_properties $1 ActiveState=active,CanStop=yes $units + __filter_units_by_properties $1 ActiveState=reloading,CanStop=yes $units + __filter_units_by_properties $1 ActiveState=activating,CanStop=yes $units } __get_reloadable_units () { |