<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>Killing processes using user name is just part of the solution.</div><div><br></div><div>Any Linux, process has a parent process, and if the parent process dies, child process should get terminated too.</div><div>Key word: "should".</div><div>Problem arises if client process does not intercept the termination of the parent process and stll runs, or is already dis-joined from the group with the parent while going background, or created as parallel.</div><div><br></div><div>In case parent process dies and child does not end, "init" overtakes parentship of the "orphaned" process, and you may need to search for that processes to kill explicitly by name, but you need to know their names (PID is not the good criteria).</div><div><br></div><div>IMHO all LDM created processes should NOT dis-join that group and should react on the signal about parent death, ceasing to execute any longer.</div><div>Again: "should".</div><div><br></div><div>Well, it may mean, that LTSP (LDM and childs) may need some code-review focusing on process parentship handling at creation/termination...</div><div><br></div><div>Kind regards</div><div>Emil Krotki</div><div>EkroTech</div><div>Mobile: +420 775 314 445</div><div><br><br></div>
<blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;" mce_style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;">
<div id="wmQuoteWrapper">
-------- Original Message --------<br>
Subject: Re: [K12OSN] Log off doesn end all user processes<br>
From: Radek Bursztynowski <<a href="mailto:radek@bursztynowski.waw.pl">radek@bursztynowski.waw.pl</a>><br>
Date: Wed, April 16, 2014 4:07 pm<br>
To: "Support list for open source software in schools."<br>
<<a href="mailto:k12osn@redhat.com">k12osn@redhat.com</a>>,        "Support list for open source software in<br>
schools." <<a href="mailto:k12osn@redhat.com">k12osn@redhat.com</a>><br>
<br>
Many thanks to all for advices.<br>
Yes, I use pkill -U $USER for loging out LTSP client from the server.<br>
Every time I check is the user is loged in from thin client or from the server directly and for LTSP session I use pkill, for directed session standard log out GNOME, XFCE or KDE program. It works fine with Scientific Linux 6.1 or CentOS 6.4 thin clent image. But I have several old machines which have to use old thin client image (Fedora 11 - i586). And pkill -U $USER with Fedora 11 thin client image kills all user processes but LDM on thin client couldn't refresh and I can see black screen only. When I use Ctrl+Alt+Backspace keys everything back to the norm and LDM reloads. It isn't clear solution for the users who use Fedora 11 thin client image with on old machines.<br>
<br>
Let me add that when I log out using standard GNOME/XFCE/KDE logging out program on Fedora 11 image, LDM reloads well, but few user processes still run.<br>
<br>
This is my real problem.<br>
<br>
On the margin I noticed that pkill -U $USER doesn't umount breaks link with /home/$USER/.gvf. It breajs tar user home directory for simple bacakup. So, the first I umount /home/$USER/gvfs and the next is pkill.<br>
<br>
Many thanks again for help, perhaps something else?<br>
<br>
Radek<br>
<br>
<br>
<br>
----- Original Message -----<br>
From: jomegat <<a href="mailto:jomegat@jomegat.com">jomegat@jomegat.com</a>><br>
Sent: Wed, 4/16/2014 3:20pm<br>
To: "Support list for open source software in schools." <<a href="mailto:k12osn@redhat.com">k12osn@redhat.com</a>><br>
Subject: Re: [K12OSN] Log off doesn end all user processes<br>
<br>
<br>
    On 04/16/2014 09:10 AM, Jim Kinney<br>
      wrote:<br>
<br>
    <br>
    <br>
      nice! New tool. <br>
<br>
      <br>
    <br>
    <br>
<br>
    It is a nice tool.  Unfortunately, using it in this case treats the<br>
    symptom rather than the disease.  But sometimes that's what you need<br>
    to do.<br>
<br>
    <br>
<br>
    <br>
      <br>
<br>
        <br>
<br>
        On Wed, Apr 16, 2014 at 9:06 AM,<br>
          jomegat <<a href="mailto:jomegat@jomegat.com">jomegat@jomegat.com</a>><br>
          wrote:<br>
<br>
          <br>
            On 04/16/2014 08:58 AM, Jim Kinney wrote:<br>
<br>
              <br>
                run this:<br>
<br>
                <br>
<br>
                ps aux | grep radek | awk '{print $2}' | xargs kill -9<br>
<br>
              <br>
              <br>
<br>
            <br>
            Here's an easier option:<br>
<br>
            <br>
<br>
            pkill -u radek<br>
<br>
            <br>
<br>
            Also,<br>
<br>
            <br>
<br>
            pkill -u radek --signal 9<br>
<br>
                <br>
<br>
                -- <br>
<br>
                Jim Thomas (j omegat t)<br>
<br>
                It's easier to outsmart people than it is to outdumb<br>
                them.<br>
<br>
                                                            - Scott<br>
                Meyers<br>
            <br>
              <br>
<br>
                <br>
<br>
                _______________________________________________<br>
<br>
                K12OSN mailing list<br>
<br>
                <a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br>
<br>
                <a href="https://www.redhat.com/mailman/listinfo/k12osn" mce_href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a><br>
<br>
                For more info see <<a href="http://www.k12os.org" mce_href="http://www.k12os.org">http://www.k12os.org</a>><br>
<br>
              <br>
            <br>
          <br>
        <br>
        <br>
<br>
        <br>
        <br>
<br>
        -- <br>
<br>
        -- <br>
<br>
          James P. Kinney III<br>
<br>
          <br>
<br>
                Every time you stop a school, you will<br>
          have to build a jail. What you gain at one end you lose at the<br>
          other. It's like feeding a dog on his own tail. It won't<br>
          fatten the dog.<br>
<br>
          - Speech 11/23/1900 Mark Twain<br>
<br>
          <br>
<br>
                  <a href="http://heretothereideas.blogspot.com">http://heretothereideas.blogspot.com</a>/<br>
<br>
                <br>
      <br>
      <br>
<br>
      <br>
      <br>
<br>
      _______________________________________________<br>
K12OSN mailing list<br>
<a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/k12osn" mce_href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a><br>
For more info see <<a href="http://www.k12os.org" mce_href="http://www.k12os.org">http://www.k12os.org</a>><br>
    <br>
    <br>
<br>
    <br>
<br>
    -- <br>
Jim Thomas (j omegat t)<br>
It's easier to outsmart people than it is to outdumb them. <br>
                                            - Scott Meyers<br>
  <br>
<br>
_______________________________________________<br>
K12OSN mailing list<br>
<a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/k12osn" mce_href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a><br>
For more info see <<a href="http://www.k12os.org" mce_href="http://www.k12os.org">http://www.k12os.org</a>>;<br>
<br>
_______________________________________________<br>
K12OSN mailing list<br>
<a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/k12osn" mce_href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a><br>
For more info see <<a href="http://www.k12os.org" mce_href="http://www.k12os.org">http://www.k12os.org</a>><br>

</div>
</blockquote></span></body></html>