mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 11:55:44 +03:00
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 New Issue
Block a user