From f4fb21c1515ca882514620b2dee31ef4246be565 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 4 Jan 2012 15:35:59 +0100 Subject: [PATCH] systemctl: shortcut log output for non-service, non-socket, non-mount, non-swap units --- src/logs-show.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/logs-show.c b/src/logs-show.c index e28fe8fa..d44c50a2 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(); -- 2.39.5