systemctl: shortcut log output for non-service, non-socket, non-mount, non-swap units

This commit is contained in:
Lennart Poettering 2012-01-04 15:35:59 +01:00
parent 94fb446e55
commit f4fb21c151

View file

@ -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();