chiark / gitweb /
systemctl: filter shown units by their load state
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 10 Jul 2012 16:03:03 +0000 (18:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Jul 2012 16:05:47 +0000 (18:05 +0200)
commitc147dc42f8b3383a3ced69aaa75e21df4fe75a96
tree210941651fe208730ca542d9232963854ac678e6
parentf69614f811b133ececad4394e88f9549a017bd4e
systemctl: filter shown units by their load state

E.g. systemctl --all -t masked gives the list of masked units.

The -t/--type option is reused. This is possible because unit types
and unit load states are called differently, so it is possible to
distinguish what the user meant. Using the same option also means that
the interface is user for the user: less options to remember.
man/systemctl.xml
src/systemctl/systemctl.c