systemctl: process all units matched by a glob in the cat verb by default

System Internals / systemd - Frantisek Sumsal [sumsal.cz] - 30 May 2019 19:11 EDT

Originally, `systemctl cat` would match only active units, for example:

$ systemctl cat sshd.service

would cat the sshd.service unit file even if the service was inactive. However:

$ systemctl cat ssh*

would show it only if it was active.

Let's unify the behavior and cat all unit files regardless of a state, if no state was given explicitly to filter.

4eb5312079 systemctl: process all units matched by a glob in the cat verb by default
src/systemctl/systemctl.c | 5 +++++
1 file changed, 5 insertions(+)

Upstream: github.com


  • Share