00001 root /sbin/launchd

Multi tool use
Multi tool use

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











up vote
0
down vote

favorite












When check the pstree



$ pstree -g 2 -p $$ | sed "s/$USER/me/g"
─┬◆ 00001 root /sbin/launchd
└─┬◆ 00277 me /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -psn_0_40970
└─┬◆ 00360 root login -pfl me /bin/bash -c exec -la bash /usr/local/bin/bash
└─┬◆ 00368 me -bash
├─┬◆ 03968 me pstree -g 2 -p 368
│ └─── 03970 root ps -axwwo user,pid,ppid,pgid,command
└─── 03969 me sed s/me/me/g


I found that root /sbin/launchd is No.0001 process, does it mean /sbin/launchd run immediately after power on?










share|improve this question

























    up vote
    0
    down vote

    favorite












    When check the pstree



    $ pstree -g 2 -p $$ | sed "s/$USER/me/g"
    ─┬◆ 00001 root /sbin/launchd
    └─┬◆ 00277 me /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -psn_0_40970
    └─┬◆ 00360 root login -pfl me /bin/bash -c exec -la bash /usr/local/bin/bash
    └─┬◆ 00368 me -bash
    ├─┬◆ 03968 me pstree -g 2 -p 368
    │ └─── 03970 root ps -axwwo user,pid,ppid,pgid,command
    └─── 03969 me sed s/me/me/g


    I found that root /sbin/launchd is No.0001 process, does it mean /sbin/launchd run immediately after power on?










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      When check the pstree



      $ pstree -g 2 -p $$ | sed "s/$USER/me/g"
      ─┬◆ 00001 root /sbin/launchd
      └─┬◆ 00277 me /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -psn_0_40970
      └─┬◆ 00360 root login -pfl me /bin/bash -c exec -la bash /usr/local/bin/bash
      └─┬◆ 00368 me -bash
      ├─┬◆ 03968 me pstree -g 2 -p 368
      │ └─── 03970 root ps -axwwo user,pid,ppid,pgid,command
      └─── 03969 me sed s/me/me/g


      I found that root /sbin/launchd is No.0001 process, does it mean /sbin/launchd run immediately after power on?










      share|improve this question













      When check the pstree



      $ pstree -g 2 -p $$ | sed "s/$USER/me/g"
      ─┬◆ 00001 root /sbin/launchd
      └─┬◆ 00277 me /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -psn_0_40970
      └─┬◆ 00360 root login -pfl me /bin/bash -c exec -la bash /usr/local/bin/bash
      └─┬◆ 00368 me -bash
      ├─┬◆ 03968 me pstree -g 2 -p 368
      │ └─── 03970 root ps -axwwo user,pid,ppid,pgid,command
      └─── 03969 me sed s/me/me/g


      I found that root /sbin/launchd is No.0001 process, does it mean /sbin/launchd run immediately after power on?







      osx ps






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      Sawajiri

      3877




      3877




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Yes. PID 1 runs immediately after boot and cannot exit. If it exits, it will trigger a kernel panic.






          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: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f480880%2f00001-root-sbin-launchd%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
            1
            down vote



            accepted










            Yes. PID 1 runs immediately after boot and cannot exit. If it exits, it will trigger a kernel panic.






            share|improve this answer
























              up vote
              1
              down vote



              accepted










              Yes. PID 1 runs immediately after boot and cannot exit. If it exits, it will trigger a kernel panic.






              share|improve this answer






















                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                Yes. PID 1 runs immediately after boot and cannot exit. If it exits, it will trigger a kernel panic.






                share|improve this answer












                Yes. PID 1 runs immediately after boot and cannot exit. If it exits, it will trigger a kernel panic.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 3 hours ago









                CameronNemo

                1,057711




                1,057711



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480880%2f00001-root-sbin-launchd%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    d,7sO MuOiCJPHdClaB88aha5OzqAFXdRv1
                    Aacde 8o DTddqu qQ hbWdfc hK pEi7 arf

                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    How many registers does an x86_64 CPU actually have?

                    Displaying single band from multi-band raster using QGIS