diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-04 15:35:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-04 15:35:59 +0100 |
commit | f4fb21c1515ca882514620b2dee31ef4246be565 (patch) | |
tree | fecd9dbb17b3af2d787a3011d78fb99acc158987 | |
parent | 94fb446e55babb713fb24850455627acf30d999b (diff) |
systemctl: shortcut log output for non-service, non-socket, non-mount, non-swap units
-rw-r--r-- | src/logs-show.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/logs-show.c b/src/logs-show.c index e28fe8fa21..d44c50a291 100644 --- a/src/logs-show.c +++ b/src/logs-show.c @@ -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(); |