What processes can survive logging out of Linux, and what not?

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












4














I am trying to understand what happens when we log out of Linux (Ubuntu specifically):



  • How does a process initially request/notify the logging out process to perform logging out (by sending some signals, or some other IPC means)? What is the program run by the logging out process? What is usually the program run by the requesting/notifying process?


  • What processes will the logging out process kill and what not? (There are ways to make processes started after logging in survive logging out, and how do they manage to do that? Making a process not having a controlling terminal seems to be a way, but most of the processes killed by logging out in the following examples don't have a controlling terminal)


  • How does the logging out process kill those processes (by sending some signals, or some other IPC means)?


Consider three cases: virtual console and desktop environment and SSH. (The first two are provided by the OS, and the third isn't, though all are running in user space)




  1. When I log in virtual console, I get the following
    ancestry processes from the login shell:



    1 systemd
    721 login
    26284 bash


    After I log out, processes 721 login and below disappear.




  2. On Lubuntu 18.04, when I log in lightdm and LXDE, and run lxterminal
    from the desktop's panel and get the ancestor processes from the
    following command in the lxterminal window:



    $ ps -paus $$
    systemd,1 --system --deserialize 19
    `-lightdm,661
    `-lightdm,27302 --session-child 13 24
    `-lxsession,27309,testme -s Lubuntu -e LXDE
    `-lxpanel,27399 --profile Lubuntu
    `-lxterminal,27565
    `-bash,27568
    `-pstree,27594 -paus 27568


    When I log out, the processes lightdm,27302 and below
    disappear.




  3. After I ssh into Lubuntu 18.04:



    $ pstree -a -p -s $$
    systemd,1 --system --deserialize 19
    └─sshd,669 -D
    └─sshd,22838
    └─sshd,22979
    └─bash,22980
    └─pstree,30610 -a -p -s 22980


    After I log out, all the processes starting from sshd,22838 to
    below disappear.



Thanks.










share|improve this question























  • related: unix.stackexchange.com/questions/490267/…
    – mosvy
    Dec 22 '18 at 4:10















4














I am trying to understand what happens when we log out of Linux (Ubuntu specifically):



  • How does a process initially request/notify the logging out process to perform logging out (by sending some signals, or some other IPC means)? What is the program run by the logging out process? What is usually the program run by the requesting/notifying process?


  • What processes will the logging out process kill and what not? (There are ways to make processes started after logging in survive logging out, and how do they manage to do that? Making a process not having a controlling terminal seems to be a way, but most of the processes killed by logging out in the following examples don't have a controlling terminal)


  • How does the logging out process kill those processes (by sending some signals, or some other IPC means)?


Consider three cases: virtual console and desktop environment and SSH. (The first two are provided by the OS, and the third isn't, though all are running in user space)




  1. When I log in virtual console, I get the following
    ancestry processes from the login shell:



    1 systemd
    721 login
    26284 bash


    After I log out, processes 721 login and below disappear.




  2. On Lubuntu 18.04, when I log in lightdm and LXDE, and run lxterminal
    from the desktop's panel and get the ancestor processes from the
    following command in the lxterminal window:



    $ ps -paus $$
    systemd,1 --system --deserialize 19
    `-lightdm,661
    `-lightdm,27302 --session-child 13 24
    `-lxsession,27309,testme -s Lubuntu -e LXDE
    `-lxpanel,27399 --profile Lubuntu
    `-lxterminal,27565
    `-bash,27568
    `-pstree,27594 -paus 27568


    When I log out, the processes lightdm,27302 and below
    disappear.




  3. After I ssh into Lubuntu 18.04:



    $ pstree -a -p -s $$
    systemd,1 --system --deserialize 19
    └─sshd,669 -D
    └─sshd,22838
    └─sshd,22979
    └─bash,22980
    └─pstree,30610 -a -p -s 22980


    After I log out, all the processes starting from sshd,22838 to
    below disappear.



Thanks.










share|improve this question























  • related: unix.stackexchange.com/questions/490267/…
    – mosvy
    Dec 22 '18 at 4:10













4












4








4


3





I am trying to understand what happens when we log out of Linux (Ubuntu specifically):



  • How does a process initially request/notify the logging out process to perform logging out (by sending some signals, or some other IPC means)? What is the program run by the logging out process? What is usually the program run by the requesting/notifying process?


  • What processes will the logging out process kill and what not? (There are ways to make processes started after logging in survive logging out, and how do they manage to do that? Making a process not having a controlling terminal seems to be a way, but most of the processes killed by logging out in the following examples don't have a controlling terminal)


  • How does the logging out process kill those processes (by sending some signals, or some other IPC means)?


Consider three cases: virtual console and desktop environment and SSH. (The first two are provided by the OS, and the third isn't, though all are running in user space)




  1. When I log in virtual console, I get the following
    ancestry processes from the login shell:



    1 systemd
    721 login
    26284 bash


    After I log out, processes 721 login and below disappear.




  2. On Lubuntu 18.04, when I log in lightdm and LXDE, and run lxterminal
    from the desktop's panel and get the ancestor processes from the
    following command in the lxterminal window:



    $ ps -paus $$
    systemd,1 --system --deserialize 19
    `-lightdm,661
    `-lightdm,27302 --session-child 13 24
    `-lxsession,27309,testme -s Lubuntu -e LXDE
    `-lxpanel,27399 --profile Lubuntu
    `-lxterminal,27565
    `-bash,27568
    `-pstree,27594 -paus 27568


    When I log out, the processes lightdm,27302 and below
    disappear.




  3. After I ssh into Lubuntu 18.04:



    $ pstree -a -p -s $$
    systemd,1 --system --deserialize 19
    └─sshd,669 -D
    └─sshd,22838
    └─sshd,22979
    └─bash,22980
    └─pstree,30610 -a -p -s 22980


    After I log out, all the processes starting from sshd,22838 to
    below disappear.



Thanks.










share|improve this question















I am trying to understand what happens when we log out of Linux (Ubuntu specifically):



  • How does a process initially request/notify the logging out process to perform logging out (by sending some signals, or some other IPC means)? What is the program run by the logging out process? What is usually the program run by the requesting/notifying process?


  • What processes will the logging out process kill and what not? (There are ways to make processes started after logging in survive logging out, and how do they manage to do that? Making a process not having a controlling terminal seems to be a way, but most of the processes killed by logging out in the following examples don't have a controlling terminal)


  • How does the logging out process kill those processes (by sending some signals, or some other IPC means)?


Consider three cases: virtual console and desktop environment and SSH. (The first two are provided by the OS, and the third isn't, though all are running in user space)




  1. When I log in virtual console, I get the following
    ancestry processes from the login shell:



    1 systemd
    721 login
    26284 bash


    After I log out, processes 721 login and below disappear.




  2. On Lubuntu 18.04, when I log in lightdm and LXDE, and run lxterminal
    from the desktop's panel and get the ancestor processes from the
    following command in the lxterminal window:



    $ ps -paus $$
    systemd,1 --system --deserialize 19
    `-lightdm,661
    `-lightdm,27302 --session-child 13 24
    `-lxsession,27309,testme -s Lubuntu -e LXDE
    `-lxpanel,27399 --profile Lubuntu
    `-lxterminal,27565
    `-bash,27568
    `-pstree,27594 -paus 27568


    When I log out, the processes lightdm,27302 and below
    disappear.




  3. After I ssh into Lubuntu 18.04:



    $ pstree -a -p -s $$
    systemd,1 --system --deserialize 19
    └─sshd,669 -D
    └─sshd,22838
    └─sshd,22979
    └─bash,22980
    └─pstree,30610 -a -p -s 22980


    After I log out, all the processes starting from sshd,22838 to
    below disappear.



Thanks.







linux ubuntu process signals logout






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 22 '18 at 3:36

























asked Dec 21 '18 at 0:37









Tim

26.1k74246455




26.1k74246455











  • related: unix.stackexchange.com/questions/490267/…
    – mosvy
    Dec 22 '18 at 4:10
















  • related: unix.stackexchange.com/questions/490267/…
    – mosvy
    Dec 22 '18 at 4:10















related: unix.stackexchange.com/questions/490267/…
– mosvy
Dec 22 '18 at 4:10




related: unix.stackexchange.com/questions/490267/…
– mosvy
Dec 22 '18 at 4:10










2 Answers
2






active

oldest

votes


















2














I don't know how systemd (especially /usr/lib/systemd/systemd-logind) is involved in OS logout process.



Following is my partial answers:



  1. The login process wait() on the login shell process, and when the login shell exits, login will receive SIGCHLD and wake up to resume its execution, which is to also exit.


  2. It seems that a logout request program such as lxsession-logout sends SIGTERM to the lxsession process (I said "seems" because I don't quite understand the source code). I don't know how lxsession responds to SIGTERM and why its descendants also die, as I can't find its disposition. I don't know why the parent lightdm,27302 of lxsession also die, and guess the parent lightdm,27302 may wait() on lxsession and die once wake up.


  3. I don't know what happens when I log out of SSH. I guess it is similar to CLI login (case 1), sshd,22979 might wait on bash,22980 and die. but I really don't know why there are so many sshd processes.






share|improve this answer






























    -3














    REMEMBER, I'M NOT GONNA TELL EVERY DETAIL, BECAUSE EVEN I DO, YOU ARE NOT ABLE TO UNDERSTAND. I ALSO KNOW YOU ARE NOT FAMINLIAR WITH EVERY CONCEPT, BUT IT'S GOOD FOR YOU TO READ MANPAGES.




    How does a process initially request/notify the logging out process to perform logging out (by sending some signals, or some other IPC means)? What is the program run by the logging out process? What is usually the program run by the requesting/notifying process?




    Suppose you mean "session manager" by "logging out process". By IPC with logind. /usr/lib/systemd/systemd-logind. Any program that can IPC with logind.




    What processes will the logging out process kill and what not? (There are ways to make processes started after logging in survive logging out, and how do they manage to do that? Making a process not having a controlling terminal seems to be a way, but most of the processes killed by logging out in the following examples don't have a controlling terminal)




    Processes inside this session would be killed, and if that's the last session of a user, and the user's not linger-enabled, the whole user slice is destroyed. By not killing it. Almost nothing to do with control-terminal, because logind doesn't use that kernel functionality.




    How does the logging out process kill those processes (by sending some signals, or some other IPC means)?




    Complex logic including pre-defined action in unit files and signals.



    1,2,3 Looking at process tree doesn't work. logind doesn't care about that. Basically, systemd-style of services and sessions manangement is cgroup. See systemctl status.






    share|improve this answer






















    • Thanks. Does logging out of OS refer to logging out of a lxsession process or a systemd-login session? Is there some relation between a lxsession process and a systemd-login session?
      – Tim
      Dec 22 '18 at 5:19







    • 1




      You should answer the question, not the person. We may all greatly benefit from your deep knowledge and understanding of systemd's design and inner workings ;-) -- provided that you give some context (that not every system is running systemd), and phrase your insights in a less koan-like manner ("By IPC with login. Any program that can IPC with logind.")
      – mosvy
      Dec 22 '18 at 5:19











    • I upvoted your reply just to make it more visible.
      – Tim
      Dec 22 '18 at 5:27






    • 1




      @Tim: That's a terrible reason to upvote a post.
      – palswim
      Dec 22 '18 at 7:38










    • The fancy blurring feature hurts my eyes. @palswim
      – Tim
      Dec 22 '18 at 13:24











    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',
    autoActivateHeartbeat: false,
    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%2f490243%2fwhat-processes-can-survive-logging-out-of-linux-and-what-not%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    I don't know how systemd (especially /usr/lib/systemd/systemd-logind) is involved in OS logout process.



    Following is my partial answers:



    1. The login process wait() on the login shell process, and when the login shell exits, login will receive SIGCHLD and wake up to resume its execution, which is to also exit.


    2. It seems that a logout request program such as lxsession-logout sends SIGTERM to the lxsession process (I said "seems" because I don't quite understand the source code). I don't know how lxsession responds to SIGTERM and why its descendants also die, as I can't find its disposition. I don't know why the parent lightdm,27302 of lxsession also die, and guess the parent lightdm,27302 may wait() on lxsession and die once wake up.


    3. I don't know what happens when I log out of SSH. I guess it is similar to CLI login (case 1), sshd,22979 might wait on bash,22980 and die. but I really don't know why there are so many sshd processes.






    share|improve this answer



























      2














      I don't know how systemd (especially /usr/lib/systemd/systemd-logind) is involved in OS logout process.



      Following is my partial answers:



      1. The login process wait() on the login shell process, and when the login shell exits, login will receive SIGCHLD and wake up to resume its execution, which is to also exit.


      2. It seems that a logout request program such as lxsession-logout sends SIGTERM to the lxsession process (I said "seems" because I don't quite understand the source code). I don't know how lxsession responds to SIGTERM and why its descendants also die, as I can't find its disposition. I don't know why the parent lightdm,27302 of lxsession also die, and guess the parent lightdm,27302 may wait() on lxsession and die once wake up.


      3. I don't know what happens when I log out of SSH. I guess it is similar to CLI login (case 1), sshd,22979 might wait on bash,22980 and die. but I really don't know why there are so many sshd processes.






      share|improve this answer

























        2












        2








        2






        I don't know how systemd (especially /usr/lib/systemd/systemd-logind) is involved in OS logout process.



        Following is my partial answers:



        1. The login process wait() on the login shell process, and when the login shell exits, login will receive SIGCHLD and wake up to resume its execution, which is to also exit.


        2. It seems that a logout request program such as lxsession-logout sends SIGTERM to the lxsession process (I said "seems" because I don't quite understand the source code). I don't know how lxsession responds to SIGTERM and why its descendants also die, as I can't find its disposition. I don't know why the parent lightdm,27302 of lxsession also die, and guess the parent lightdm,27302 may wait() on lxsession and die once wake up.


        3. I don't know what happens when I log out of SSH. I guess it is similar to CLI login (case 1), sshd,22979 might wait on bash,22980 and die. but I really don't know why there are so many sshd processes.






        share|improve this answer














        I don't know how systemd (especially /usr/lib/systemd/systemd-logind) is involved in OS logout process.



        Following is my partial answers:



        1. The login process wait() on the login shell process, and when the login shell exits, login will receive SIGCHLD and wake up to resume its execution, which is to also exit.


        2. It seems that a logout request program such as lxsession-logout sends SIGTERM to the lxsession process (I said "seems" because I don't quite understand the source code). I don't know how lxsession responds to SIGTERM and why its descendants also die, as I can't find its disposition. I don't know why the parent lightdm,27302 of lxsession also die, and guess the parent lightdm,27302 may wait() on lxsession and die once wake up.


        3. I don't know what happens when I log out of SSH. I guess it is similar to CLI login (case 1), sshd,22979 might wait on bash,22980 and die. but I really don't know why there are so many sshd processes.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 22 '18 at 5:56

























        answered Dec 22 '18 at 3:23









        Tim

        26.1k74246455




        26.1k74246455























            -3














            REMEMBER, I'M NOT GONNA TELL EVERY DETAIL, BECAUSE EVEN I DO, YOU ARE NOT ABLE TO UNDERSTAND. I ALSO KNOW YOU ARE NOT FAMINLIAR WITH EVERY CONCEPT, BUT IT'S GOOD FOR YOU TO READ MANPAGES.




            How does a process initially request/notify the logging out process to perform logging out (by sending some signals, or some other IPC means)? What is the program run by the logging out process? What is usually the program run by the requesting/notifying process?




            Suppose you mean "session manager" by "logging out process". By IPC with logind. /usr/lib/systemd/systemd-logind. Any program that can IPC with logind.




            What processes will the logging out process kill and what not? (There are ways to make processes started after logging in survive logging out, and how do they manage to do that? Making a process not having a controlling terminal seems to be a way, but most of the processes killed by logging out in the following examples don't have a controlling terminal)




            Processes inside this session would be killed, and if that's the last session of a user, and the user's not linger-enabled, the whole user slice is destroyed. By not killing it. Almost nothing to do with control-terminal, because logind doesn't use that kernel functionality.




            How does the logging out process kill those processes (by sending some signals, or some other IPC means)?




            Complex logic including pre-defined action in unit files and signals.



            1,2,3 Looking at process tree doesn't work. logind doesn't care about that. Basically, systemd-style of services and sessions manangement is cgroup. See systemctl status.






            share|improve this answer






















            • Thanks. Does logging out of OS refer to logging out of a lxsession process or a systemd-login session? Is there some relation between a lxsession process and a systemd-login session?
              – Tim
              Dec 22 '18 at 5:19







            • 1




              You should answer the question, not the person. We may all greatly benefit from your deep knowledge and understanding of systemd's design and inner workings ;-) -- provided that you give some context (that not every system is running systemd), and phrase your insights in a less koan-like manner ("By IPC with login. Any program that can IPC with logind.")
              – mosvy
              Dec 22 '18 at 5:19











            • I upvoted your reply just to make it more visible.
              – Tim
              Dec 22 '18 at 5:27






            • 1




              @Tim: That's a terrible reason to upvote a post.
              – palswim
              Dec 22 '18 at 7:38










            • The fancy blurring feature hurts my eyes. @palswim
              – Tim
              Dec 22 '18 at 13:24
















            -3














            REMEMBER, I'M NOT GONNA TELL EVERY DETAIL, BECAUSE EVEN I DO, YOU ARE NOT ABLE TO UNDERSTAND. I ALSO KNOW YOU ARE NOT FAMINLIAR WITH EVERY CONCEPT, BUT IT'S GOOD FOR YOU TO READ MANPAGES.




            How does a process initially request/notify the logging out process to perform logging out (by sending some signals, or some other IPC means)? What is the program run by the logging out process? What is usually the program run by the requesting/notifying process?




            Suppose you mean "session manager" by "logging out process". By IPC with logind. /usr/lib/systemd/systemd-logind. Any program that can IPC with logind.




            What processes will the logging out process kill and what not? (There are ways to make processes started after logging in survive logging out, and how do they manage to do that? Making a process not having a controlling terminal seems to be a way, but most of the processes killed by logging out in the following examples don't have a controlling terminal)




            Processes inside this session would be killed, and if that's the last session of a user, and the user's not linger-enabled, the whole user slice is destroyed. By not killing it. Almost nothing to do with control-terminal, because logind doesn't use that kernel functionality.




            How does the logging out process kill those processes (by sending some signals, or some other IPC means)?




            Complex logic including pre-defined action in unit files and signals.



            1,2,3 Looking at process tree doesn't work. logind doesn't care about that. Basically, systemd-style of services and sessions manangement is cgroup. See systemctl status.






            share|improve this answer






















            • Thanks. Does logging out of OS refer to logging out of a lxsession process or a systemd-login session? Is there some relation between a lxsession process and a systemd-login session?
              – Tim
              Dec 22 '18 at 5:19







            • 1




              You should answer the question, not the person. We may all greatly benefit from your deep knowledge and understanding of systemd's design and inner workings ;-) -- provided that you give some context (that not every system is running systemd), and phrase your insights in a less koan-like manner ("By IPC with login. Any program that can IPC with logind.")
              – mosvy
              Dec 22 '18 at 5:19











            • I upvoted your reply just to make it more visible.
              – Tim
              Dec 22 '18 at 5:27






            • 1




              @Tim: That's a terrible reason to upvote a post.
              – palswim
              Dec 22 '18 at 7:38










            • The fancy blurring feature hurts my eyes. @palswim
              – Tim
              Dec 22 '18 at 13:24














            -3












            -3








            -3






            REMEMBER, I'M NOT GONNA TELL EVERY DETAIL, BECAUSE EVEN I DO, YOU ARE NOT ABLE TO UNDERSTAND. I ALSO KNOW YOU ARE NOT FAMINLIAR WITH EVERY CONCEPT, BUT IT'S GOOD FOR YOU TO READ MANPAGES.




            How does a process initially request/notify the logging out process to perform logging out (by sending some signals, or some other IPC means)? What is the program run by the logging out process? What is usually the program run by the requesting/notifying process?




            Suppose you mean "session manager" by "logging out process". By IPC with logind. /usr/lib/systemd/systemd-logind. Any program that can IPC with logind.




            What processes will the logging out process kill and what not? (There are ways to make processes started after logging in survive logging out, and how do they manage to do that? Making a process not having a controlling terminal seems to be a way, but most of the processes killed by logging out in the following examples don't have a controlling terminal)




            Processes inside this session would be killed, and if that's the last session of a user, and the user's not linger-enabled, the whole user slice is destroyed. By not killing it. Almost nothing to do with control-terminal, because logind doesn't use that kernel functionality.




            How does the logging out process kill those processes (by sending some signals, or some other IPC means)?




            Complex logic including pre-defined action in unit files and signals.



            1,2,3 Looking at process tree doesn't work. logind doesn't care about that. Basically, systemd-style of services and sessions manangement is cgroup. See systemctl status.






            share|improve this answer














            REMEMBER, I'M NOT GONNA TELL EVERY DETAIL, BECAUSE EVEN I DO, YOU ARE NOT ABLE TO UNDERSTAND. I ALSO KNOW YOU ARE NOT FAMINLIAR WITH EVERY CONCEPT, BUT IT'S GOOD FOR YOU TO READ MANPAGES.




            How does a process initially request/notify the logging out process to perform logging out (by sending some signals, or some other IPC means)? What is the program run by the logging out process? What is usually the program run by the requesting/notifying process?




            Suppose you mean "session manager" by "logging out process". By IPC with logind. /usr/lib/systemd/systemd-logind. Any program that can IPC with logind.




            What processes will the logging out process kill and what not? (There are ways to make processes started after logging in survive logging out, and how do they manage to do that? Making a process not having a controlling terminal seems to be a way, but most of the processes killed by logging out in the following examples don't have a controlling terminal)




            Processes inside this session would be killed, and if that's the last session of a user, and the user's not linger-enabled, the whole user slice is destroyed. By not killing it. Almost nothing to do with control-terminal, because logind doesn't use that kernel functionality.




            How does the logging out process kill those processes (by sending some signals, or some other IPC means)?




            Complex logic including pre-defined action in unit files and signals.



            1,2,3 Looking at process tree doesn't work. logind doesn't care about that. Basically, systemd-style of services and sessions manangement is cgroup. See systemctl status.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 22 '18 at 1:01

























            answered Dec 21 '18 at 6:38









            炸鱼薯条德里克

            414114




            414114











            • Thanks. Does logging out of OS refer to logging out of a lxsession process or a systemd-login session? Is there some relation between a lxsession process and a systemd-login session?
              – Tim
              Dec 22 '18 at 5:19







            • 1




              You should answer the question, not the person. We may all greatly benefit from your deep knowledge and understanding of systemd's design and inner workings ;-) -- provided that you give some context (that not every system is running systemd), and phrase your insights in a less koan-like manner ("By IPC with login. Any program that can IPC with logind.")
              – mosvy
              Dec 22 '18 at 5:19











            • I upvoted your reply just to make it more visible.
              – Tim
              Dec 22 '18 at 5:27






            • 1




              @Tim: That's a terrible reason to upvote a post.
              – palswim
              Dec 22 '18 at 7:38










            • The fancy blurring feature hurts my eyes. @palswim
              – Tim
              Dec 22 '18 at 13:24

















            • Thanks. Does logging out of OS refer to logging out of a lxsession process or a systemd-login session? Is there some relation between a lxsession process and a systemd-login session?
              – Tim
              Dec 22 '18 at 5:19







            • 1




              You should answer the question, not the person. We may all greatly benefit from your deep knowledge and understanding of systemd's design and inner workings ;-) -- provided that you give some context (that not every system is running systemd), and phrase your insights in a less koan-like manner ("By IPC with login. Any program that can IPC with logind.")
              – mosvy
              Dec 22 '18 at 5:19











            • I upvoted your reply just to make it more visible.
              – Tim
              Dec 22 '18 at 5:27






            • 1




              @Tim: That's a terrible reason to upvote a post.
              – palswim
              Dec 22 '18 at 7:38










            • The fancy blurring feature hurts my eyes. @palswim
              – Tim
              Dec 22 '18 at 13:24
















            Thanks. Does logging out of OS refer to logging out of a lxsession process or a systemd-login session? Is there some relation between a lxsession process and a systemd-login session?
            – Tim
            Dec 22 '18 at 5:19





            Thanks. Does logging out of OS refer to logging out of a lxsession process or a systemd-login session? Is there some relation between a lxsession process and a systemd-login session?
            – Tim
            Dec 22 '18 at 5:19





            1




            1




            You should answer the question, not the person. We may all greatly benefit from your deep knowledge and understanding of systemd's design and inner workings ;-) -- provided that you give some context (that not every system is running systemd), and phrase your insights in a less koan-like manner ("By IPC with login. Any program that can IPC with logind.")
            – mosvy
            Dec 22 '18 at 5:19





            You should answer the question, not the person. We may all greatly benefit from your deep knowledge and understanding of systemd's design and inner workings ;-) -- provided that you give some context (that not every system is running systemd), and phrase your insights in a less koan-like manner ("By IPC with login. Any program that can IPC with logind.")
            – mosvy
            Dec 22 '18 at 5:19













            I upvoted your reply just to make it more visible.
            – Tim
            Dec 22 '18 at 5:27




            I upvoted your reply just to make it more visible.
            – Tim
            Dec 22 '18 at 5:27




            1




            1




            @Tim: That's a terrible reason to upvote a post.
            – palswim
            Dec 22 '18 at 7:38




            @Tim: That's a terrible reason to upvote a post.
            – palswim
            Dec 22 '18 at 7:38












            The fancy blurring feature hurts my eyes. @palswim
            – Tim
            Dec 22 '18 at 13:24





            The fancy blurring feature hurts my eyes. @palswim
            – Tim
            Dec 22 '18 at 13:24


















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2funix.stackexchange.com%2fquestions%2f490243%2fwhat-processes-can-survive-logging-out-of-linux-and-what-not%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

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

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?