summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-25 17:28:42 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-25 17:40:54 +0100
commitdbed408b8e07602c3169af79393b5a3fbd7036b1 (patch)
tree8b6f77c2d30ab78894a1ee4e6c5853f924c36b43 /src
parent2c7e050f61d1bf142389edd4eb83c1dc58c5c641 (diff)
systemctl: when status is called without arguments show pager
Diffstat (limited to 'src')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index fa6447607a..d4d46f300f 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -3654,6 +3654,8 @@ static int show_all(
if (r < 0)
return r;
+ pager_open_if_enabled();
+
c = (unsigned) r;
qsort_safe(unit_infos, c, sizeof(UnitInfo), compare_unit_info);