[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Log off doesn end all user processes



Emil,

Thanks for explanation. Let me add my feelings. 
In my opinion newer thin client images (Scientific Linux 6.1, CentOS
6.4) reload LDM spontaneously when active session between thin client
and the server is broken. Owing to that pkill -U $USER works fine.
Fedora 11 thin image doesn't reload LDM spontaneously. So, I think the
solution is on the thin client image, not on the server site.

Pozdrawiam,
Radek 


> Killing processes using user name is just part of the solution.
> 
> 
> Any Linux, process has a parent process, and if the parent process
> dies, child process should get terminated too.
> Key word: "should".
> 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.
> 
> 
> 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).
> 
> 
> 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.
> Again: "should".
> 
> 
> Well, it may mean, that LTSP (LDM and childs) may need some
> code-review focusing on process parentship handling at
> creation/termination...
> 
> 
> Kind regards
> Emil Krotki
> EkroTech
> Mobile: +420 775 314 445
> 
> 
> 
>         -------- Original Message --------
>         Subject: Re: [K12OSN] Log off doesn end all user processes
>         From: Radek Bursztynowski <radek bursztynowski waw pl>
>         Date: Wed, April 16, 2014 4:07 pm
>         To: "Support list for open source software in schools."
>         <k12osn redhat com>, "Support list for open source software in
>         schools." <k12osn redhat com>
>         
>         Many thanks to all for advices.
>         Yes, I use pkill -U $USER for loging out LTSP client from the
>         server.
>         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.
>         
>         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.
>         
>         This is my real problem.
>         
>         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.
>         
>         Many thanks again for help, perhaps something else?
>         
>         Radek
>         
>         
>         
>         ----- Original Message -----
>         From: jomegat <jomegat jomegat com>
>         Sent: Wed, 4/16/2014 3:20pm
>         To: "Support list for open source software in schools."
>         <k12osn redhat com>
>         Subject: Re: [K12OSN] Log off doesn end all user processes
>         
>         
>         On 04/16/2014 09:10 AM, Jim Kinney
>         wrote:
>         
>         
>         
>         nice! New tool. 
>         
>         
>         
>         
>         
>         It is a nice tool. Unfortunately, using it in this case treats
>         the
>         symptom rather than the disease. But sometimes that's what you
>         need
>         to do.
>         
>         
>         
>         
>         
>         
>         
>         
>         On Wed, Apr 16, 2014 at 9:06 AM,
>         jomegat <jomegat jomegat com>
>         wrote:
>         
>         
>         On 04/16/2014 08:58 AM, Jim Kinney wrote:
>         
>         
>         run this:
>         
>         
>         
>         ps aux | grep radek | awk '{print $2}' | xargs kill -9
>         
>         
>         
>         
>         
>         Here's an easier option:
>         
>         
>         
>         pkill -u radek
>         
>         
>         
>         Also,
>         
>         
>         
>         pkill -u radek --signal 9
>         
>         
>         
>         -- 
>         
>         Jim Thomas (j omegat t)
>         
>         It's easier to outsmart people than it is to outdumb
>         them.
>         
>         - Scott
>         Meyers
>         
>         
>         
>         
>         
>         _______________________________________________
>         
>         K12OSN mailing list
>         
>         K12OSN redhat com
>         
>         https://www.redhat.com/mailman/listinfo/k12osn
>         
>         For more info see <http://www.k12os.org>
>         
>         
>         
>         
>         
>         
>         
>         
>         
>         
>         -- 
>         
>         -- 
>         
>         James P. Kinney III
>         
>         
>         
>         Every time you stop a school, you will
>         have to build a jail. What you gain at one end you lose at the
>         other. It's like feeding a dog on his own tail. It won't
>         fatten the dog.
>         
>         - Speech 11/23/1900 Mark Twain
>         
>         
>         
>         http://heretothereideas.blogspot.com/
>         
>         
>         
>         
>         
>         
>         
>         
>         _______________________________________________
>         K12OSN mailing list
>         K12OSN redhat com
>         https://www.redhat.com/mailman/listinfo/k12osn
>         For more info see <http://www.k12os.org>
>         
>         
>         
>         
>         
>         -- 
>         Jim Thomas (j omegat t)
>         It's easier to outsmart people than it is to outdumb them. 
>         - Scott Meyers
>         
>         
>         _______________________________________________
>         K12OSN mailing list
>         K12OSN redhat com
>         https://www.redhat.com/mailman/listinfo/k12osn
>         For more info see <http://www.k12os.org>;
>         
>         _______________________________________________
>         K12OSN mailing list
>         K12OSN redhat com
>         https://www.redhat.com/mailman/listinfo/k12osn
>         For more info see <http://www.k12os.org>
>         
> _______________________________________________
> K12OSN mailing list
> K12OSN redhat com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]