How to watch output from systemd service?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












I want to watch output from a systemd service on CentOS as if I have started this service from console. Yes, I can see output with journalctl, but it doesn't scroll to the bottom automatically. So how can I watch live output from service?










share|improve this question



























    up vote
    3
    down vote

    favorite












    I want to watch output from a systemd service on CentOS as if I have started this service from console. Yes, I can see output with journalctl, but it doesn't scroll to the bottom automatically. So how can I watch live output from service?










    share|improve this question

























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I want to watch output from a systemd service on CentOS as if I have started this service from console. Yes, I can see output with journalctl, but it doesn't scroll to the bottom automatically. So how can I watch live output from service?










      share|improve this question















      I want to watch output from a systemd service on CentOS as if I have started this service from console. Yes, I can see output with journalctl, but it doesn't scroll to the bottom automatically. So how can I watch live output from service?







      systemd journalctl






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 hours ago









      don_crissti

      47.8k15126155




      47.8k15126155










      asked 4 hours ago









      stiv

      1942415




      1942415




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          journalctl -f -u mystuff.service


          It's in the manual:




          -f, --follow

          Show only the most recent journal entries, and continuously print new entries as they are appended to the
          journal.




          and




          -u, --unit=UNIT|PATTERN

          Show messages for the specified systemd unit UNIT (such as a service unit), or for any of the units
          matched by PATTERN. If a pattern is specified, a list of unit names found in the journal is compared with
          the specified pattern and all that match are used. For each unit name, a match is added for messages from
          the unit ("_SYSTEMD_UNIT=UNIT"), along with additional matches for messages from systemd and messages
          about coredumps for the specified unit.



          This parameter can be specified multiple times.







          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475292%2fhow-to-watch-output-from-systemd-service%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote



            accepted










            journalctl -f -u mystuff.service


            It's in the manual:




            -f, --follow

            Show only the most recent journal entries, and continuously print new entries as they are appended to the
            journal.




            and




            -u, --unit=UNIT|PATTERN

            Show messages for the specified systemd unit UNIT (such as a service unit), or for any of the units
            matched by PATTERN. If a pattern is specified, a list of unit names found in the journal is compared with
            the specified pattern and all that match are used. For each unit name, a match is added for messages from
            the unit ("_SYSTEMD_UNIT=UNIT"), along with additional matches for messages from systemd and messages
            about coredumps for the specified unit.



            This parameter can be specified multiple times.







            share|improve this answer
























              up vote
              3
              down vote



              accepted










              journalctl -f -u mystuff.service


              It's in the manual:




              -f, --follow

              Show only the most recent journal entries, and continuously print new entries as they are appended to the
              journal.




              and




              -u, --unit=UNIT|PATTERN

              Show messages for the specified systemd unit UNIT (such as a service unit), or for any of the units
              matched by PATTERN. If a pattern is specified, a list of unit names found in the journal is compared with
              the specified pattern and all that match are used. For each unit name, a match is added for messages from
              the unit ("_SYSTEMD_UNIT=UNIT"), along with additional matches for messages from systemd and messages
              about coredumps for the specified unit.



              This parameter can be specified multiple times.







              share|improve this answer






















                up vote
                3
                down vote



                accepted







                up vote
                3
                down vote



                accepted






                journalctl -f -u mystuff.service


                It's in the manual:




                -f, --follow

                Show only the most recent journal entries, and continuously print new entries as they are appended to the
                journal.




                and




                -u, --unit=UNIT|PATTERN

                Show messages for the specified systemd unit UNIT (such as a service unit), or for any of the units
                matched by PATTERN. If a pattern is specified, a list of unit names found in the journal is compared with
                the specified pattern and all that match are used. For each unit name, a match is added for messages from
                the unit ("_SYSTEMD_UNIT=UNIT"), along with additional matches for messages from systemd and messages
                about coredumps for the specified unit.



                This parameter can be specified multiple times.







                share|improve this answer












                journalctl -f -u mystuff.service


                It's in the manual:




                -f, --follow

                Show only the most recent journal entries, and continuously print new entries as they are appended to the
                journal.




                and




                -u, --unit=UNIT|PATTERN

                Show messages for the specified systemd unit UNIT (such as a service unit), or for any of the units
                matched by PATTERN. If a pattern is specified, a list of unit names found in the journal is compared with
                the specified pattern and all that match are used. For each unit name, a match is added for messages from
                the unit ("_SYSTEMD_UNIT=UNIT"), along with additional matches for messages from systemd and messages
                about coredumps for the specified unit.



                This parameter can be specified multiple times.








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 4 hours ago









                don_crissti

                47.8k15126155




                47.8k15126155



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475292%2fhow-to-watch-output-from-systemd-service%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                    Confectionery