systemctl: shortcut log output for non-service, non-socket, non-mount, non-swap units
This commit is contained in:
parent
94fb446e55
commit
f4fb21c151
|
@ -350,6 +350,12 @@ int show_journal_by_service(
|
|||
|
||||
assert(service);
|
||||
|
||||
if (!endswith(service, ".service") &&
|
||||
!endswith(service, ".socket") &&
|
||||
!endswith(service, ".mount") &&
|
||||
!endswith(service, ".swap"))
|
||||
return 0;
|
||||
|
||||
if (n_columns <= 0)
|
||||
n_columns = columns();
|
||||
|
||||
|
|
Loading…
Reference in a new issue