chiark / gitweb /
systemctl: when status is called without arguments show pager
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Nov 2013 16:28:42 +0000 (17:28 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Nov 2013 16:40:54 +0000 (17:40 +0100)
src/systemctl/systemctl.c

index fa64476..d4d46f3 100644 (file)
@@ -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);