summaryrefslogtreecommitdiff
path: root/src/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-03 21:08:28 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-03 21:08:58 +0100
commit86aa7ba4f9969bbfc75ebd51f944313695f1a0a1 (patch)
tree509ce831b9020bdb9f1ac929a561e33711bbb4c4 /src/systemctl.c
parentadf7d506b50af9ba398a9925c8cd47ba328e720c (diff)
systemctl: hook up systemctl with the journal
Diffstat (limited to 'src/systemctl.c')
-rw-r--r--src/systemctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 1142200e42..10e3991745 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -58,6 +58,7 @@
#include "pager.h"
#include "spawn-agent.h"
#include "install.h"
+#include "logs-show.h"
static const char *arg_type = NULL;
static char **arg_property = NULL;
@@ -2261,6 +2262,9 @@ static void print_status_info(UnitStatusInfo *i) {
}
}
+ if (i->id && arg_transport != TRANSPORT_SSH)
+ show_journal_by_service(i->id, OUTPUT_SHORT, NULL, 0, 0, 0, arg_all);
+
if (i->need_daemon_reload)
printf("\n%sWarning:%s Unit file changed on disk, 'systemctl %s daemon-reload' recommended.\n",
ansi_highlight(true),