chiark / gitweb /
systemctl: autopage always if systemctl status is invoked without args
[elogind.git] / src / systemctl / systemctl.c
index 3cb10964fd22f504513c453d46e274d655efa5a7..254ca10c4fff75ee94a11591a378e475aef0ac15 100644 (file)
@@ -3226,7 +3226,6 @@ static void print_status_info(
         }
 
         if (i->id && arg_transport == BUS_TRANSPORT_LOCAL) {
-                printf("\n");
                 show_journal_by_unit(stdout,
                                      i->id,
                                      arg_output,
@@ -3234,7 +3233,7 @@ static void print_status_info(
                                      i->inactive_exit_timestamp_monotonic,
                                      arg_lines,
                                      getuid(),
-                                     flags,
+                                     flags | OUTPUT_BEGIN_NEWLINE,
                                      arg_scope == UNIT_FILE_SYSTEM,
                                      ellipsized);
         }
@@ -4155,9 +4154,7 @@ static int show(sd_bus *bus, char **args) {
 
         if (show_status && strv_length(args) <= 1) {
 
-                if (arg_all)
-                        pager_open_if_enabled();
-
+                pager_open_if_enabled();
                 show_system_status(bus);
                 new_line = true;