sytemctl status log outputStarting nginx with systemctl fails, but running the command manually doesn'tWeird interaction with systemctl with Haproxy on CentOS 7Elasticsearch service often goes down or gets killedSystemd causing multiple supervisor processesTruncated/missing logs with systemd on Ubuntu 16.04How to run a docker image as a systemctl service?Ubuntu 16 server, systemctl restart elasticsearch does nothing, and there's no logOpenDKIM Exited status and mysql plaintext passwordsHaving trouble running supervisord using systemctl (systemd)Failed to start open network operating system using command systemctl

Why don't we use Cavea-B

What is the evidence on the danger of feeding whole blueberries and grapes to infants and toddlers?

How to get the pandadocs from an opportunity?

Most practical knots for hitching a line to an object while keeping the bitter end as tight as possible, without sag?

How to "know" if I have a passion?

Starships without computers?

Was Tuvok bluffing when he said that Voyager's transporters rendered the Kazon weapons useless?

What happens when I copy a legendary creature with Rite of Replication?

Taking out number of subarrays from an array which contains all the distinct elements of that array

Does Swashbuckler's Fancy Footwork apply if the attack was made with Booming Blade?

The sound of thunder's like a whip

Would combining A* with a flocking algorithm be too performance-heavy?

How to setup a teletype to a unix shell

How would one country purchase another?

How to think about joining a company whose business I do not understand?

What are the pros and cons of Einstein-Cartan Theory?

Co-author responds to email by mistake cc'ing the EiC

Can a group have a cyclical derived series?

Overwrite file only if data

Thread-safe, Convenient and Performant Random Number Generator

Why doesn't mathematics collapse even though humans quite often make mistakes in their proofs?

Do I have to learn /o/ or /ɔ/ separately?

Dark side of an exoplanet - if it was earth-like would its surface light be detectable?

Are illustrations in novels frowned upon?



sytemctl status log output


Starting nginx with systemctl fails, but running the command manually doesn'tWeird interaction with systemctl with Haproxy on CentOS 7Elasticsearch service often goes down or gets killedSystemd causing multiple supervisor processesTruncated/missing logs with systemd on Ubuntu 16.04How to run a docker image as a systemctl service?Ubuntu 16 server, systemctl restart elasticsearch does nothing, and there's no logOpenDKIM Exited status and mysql plaintext passwordsHaving trouble running supervisord using systemctl (systemd)Failed to start open network operating system using command systemctl






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








5















When I run systemctl status with multiple services at once like



sudo systemctl status myservice1 myservice2 myservice3 I see the output, but in the end I see



lines 1-48/48 (END)
or if the output is even larger with more arguments



lines 1-62
and I can scroll or paginate the output and quit with q.



Can this behavior be changed that all log output is printed at once and the command exits?










share|improve this question
































    5















    When I run systemctl status with multiple services at once like



    sudo systemctl status myservice1 myservice2 myservice3 I see the output, but in the end I see



    lines 1-48/48 (END)
    or if the output is even larger with more arguments



    lines 1-62
    and I can scroll or paginate the output and quit with q.



    Can this behavior be changed that all log output is printed at once and the command exits?










    share|improve this question




























      5












      5








      5








      When I run systemctl status with multiple services at once like



      sudo systemctl status myservice1 myservice2 myservice3 I see the output, but in the end I see



      lines 1-48/48 (END)
      or if the output is even larger with more arguments



      lines 1-62
      and I can scroll or paginate the output and quit with q.



      Can this behavior be changed that all log output is printed at once and the command exits?










      share|improve this question
















      When I run systemctl status with multiple services at once like



      sudo systemctl status myservice1 myservice2 myservice3 I see the output, but in the end I see



      lines 1-48/48 (END)
      or if the output is even larger with more arguments



      lines 1-62
      and I can scroll or paginate the output and quit with q.



      Can this behavior be changed that all log output is printed at once and the command exits?







      systemctl






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 8 at 13:27









      exeral

      7094 silver badges14 bronze badges




      7094 silver badges14 bronze badges










      asked Aug 8 at 9:09









      lamvieclamviec

      261 bronze badge




      261 bronze badge























          1 Answer
          1






          active

          oldest

          votes


















          12














          Two options:



          • PAGER=cat systemctl status service1 service2 service3


          • systemctl --no-pager status service1 service2 service3

          Explanation:



          Those lines 1-62 messages are produced by a pager program, the commonly used ones are more and less. Pager programs intend to make output more user-friendly, scrollable, etc. They are especially important on less feature-rich terminal emulators.



          The pager program to use is controlled by PAGER environment variable. By setting PAGER to cat we replace fancier more or less with a much more simple pager which actually does not do any paging.



          Alternative is to pass --no-pager to systemctl which tells it not to invoke pager program at all.






          share|improve this answer




















          • 3





            cat is not necessary. It works to simply have PAGER be empty, e.g. PAGER= systemctl status ...

            – Michael Hampton
            Aug 8 at 17:55













          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "2"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f978451%2fsytemctl-status-log-output%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          12














          Two options:



          • PAGER=cat systemctl status service1 service2 service3


          • systemctl --no-pager status service1 service2 service3

          Explanation:



          Those lines 1-62 messages are produced by a pager program, the commonly used ones are more and less. Pager programs intend to make output more user-friendly, scrollable, etc. They are especially important on less feature-rich terminal emulators.



          The pager program to use is controlled by PAGER environment variable. By setting PAGER to cat we replace fancier more or less with a much more simple pager which actually does not do any paging.



          Alternative is to pass --no-pager to systemctl which tells it not to invoke pager program at all.






          share|improve this answer




















          • 3





            cat is not necessary. It works to simply have PAGER be empty, e.g. PAGER= systemctl status ...

            – Michael Hampton
            Aug 8 at 17:55















          12














          Two options:



          • PAGER=cat systemctl status service1 service2 service3


          • systemctl --no-pager status service1 service2 service3

          Explanation:



          Those lines 1-62 messages are produced by a pager program, the commonly used ones are more and less. Pager programs intend to make output more user-friendly, scrollable, etc. They are especially important on less feature-rich terminal emulators.



          The pager program to use is controlled by PAGER environment variable. By setting PAGER to cat we replace fancier more or less with a much more simple pager which actually does not do any paging.



          Alternative is to pass --no-pager to systemctl which tells it not to invoke pager program at all.






          share|improve this answer




















          • 3





            cat is not necessary. It works to simply have PAGER be empty, e.g. PAGER= systemctl status ...

            – Michael Hampton
            Aug 8 at 17:55













          12












          12








          12







          Two options:



          • PAGER=cat systemctl status service1 service2 service3


          • systemctl --no-pager status service1 service2 service3

          Explanation:



          Those lines 1-62 messages are produced by a pager program, the commonly used ones are more and less. Pager programs intend to make output more user-friendly, scrollable, etc. They are especially important on less feature-rich terminal emulators.



          The pager program to use is controlled by PAGER environment variable. By setting PAGER to cat we replace fancier more or less with a much more simple pager which actually does not do any paging.



          Alternative is to pass --no-pager to systemctl which tells it not to invoke pager program at all.






          share|improve this answer













          Two options:



          • PAGER=cat systemctl status service1 service2 service3


          • systemctl --no-pager status service1 service2 service3

          Explanation:



          Those lines 1-62 messages are produced by a pager program, the commonly used ones are more and less. Pager programs intend to make output more user-friendly, scrollable, etc. They are especially important on less feature-rich terminal emulators.



          The pager program to use is controlled by PAGER environment variable. By setting PAGER to cat we replace fancier more or less with a much more simple pager which actually does not do any paging.



          Alternative is to pass --no-pager to systemctl which tells it not to invoke pager program at all.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 8 at 9:11









          rvsrvs

          3,5501 gold badge21 silver badges28 bronze badges




          3,5501 gold badge21 silver badges28 bronze badges










          • 3





            cat is not necessary. It works to simply have PAGER be empty, e.g. PAGER= systemctl status ...

            – Michael Hampton
            Aug 8 at 17:55












          • 3





            cat is not necessary. It works to simply have PAGER be empty, e.g. PAGER= systemctl status ...

            – Michael Hampton
            Aug 8 at 17:55







          3




          3





          cat is not necessary. It works to simply have PAGER be empty, e.g. PAGER= systemctl status ...

          – Michael Hampton
          Aug 8 at 17:55





          cat is not necessary. It works to simply have PAGER be empty, e.g. PAGER= systemctl status ...

          – Michael Hampton
          Aug 8 at 17:55

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f978451%2fsytemctl-status-log-output%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?