[K12OSN] Kill User processes on log-off
daniel.hedblom at skola.solleftea.se
Wed Feb 23 12:30:06 UTC 2005
I dont know if thats such a good idea, what if i want to login from two places
at once? The user ps should be killed at logout or at disconnected session,
killing them at login is, well, backwards. The same issue is making linux look
unstable if i use it at a normal desktop extensively under longer periods. I
have seen this behaviour on Gentoo, Redhat FC1, 2 and 3 and Ubuntu Linux. The
common dominator is that i have used GDM on them all.
Why the processes wont die i dont know but i suspect that they are just left
hanging totally unwitting the state of the session.
Maybe i should just shut up and get my behind on track learning programming.
Citerar Rob Owens <hick518 at yahoo.com>:
> How about running a script like this at login time,
> instead of at logout time? Or maybe at both login and
> Why is it that the processes don't die, anyway?
> --- Daniel Hedblom <daniel.hedblom at skola.solleftea.se>
> > Hi!
> > The problem with this solution is that it only works
> > if the user has logged out.
> > For example a pulled powercord or a network failiure
> > will bypass the Postsession
> > script. Due to a problem (feature?) in gdm (Gnome
> > Display Manager) the session
> > isnt cleaned up. There are a bug filed on this so if
> > they find a fix i think we
> > should use it on ltsp. I have had numerous clients
> > who cant log in or experience
> > strange errors in ooffice and other apps in because
> > of orphaned processes. This
> > have most often occured after one of the client has
> > died or lost connectivity.
> > If anyone has a solution to this im happy as a pig
> > =)
> > http://bugzilla.gnome.org/show_bug.cgi?id=152906
> > http://bugzilla.gnome.org/show_bug.cgi?id=152907
> > /daniel
> > Citerar Tom Lisjac <netdxr at gmail.com>:
> > > On Tue, 22 Feb 2005 15:27:32 -0600, Jim Kronebusch
> > <jim at winonacotter.org>
> > > wrote:
> > > > I have seen some stuff on this list over the
> > last few days regarding
> > > > cleaning out /tmp and killing user processes and
> > such.
> > >
> > > Perhaps I'm jumping in late on this thread but in
> > 4.2.0 there is a
> > > variable in /etc/sysconfig/K12ltsp called
> > PURGE_PROCESSES. Setting it
> > > to yes causes this script to run
> > in:/etc/X11/gdm/PostSession:
> > >
> > > /usr/sbin/purge_user $USER SANE
> > >
> > > It only affects uid's over 500 and seems to do a
> > good job of mopping
> > > up after a terminal user logs out.
> > >
> > > -Tom
> > >
> > > _______________________________________________
> > > K12OSN mailing list
> > > K12OSN at redhat.com
> > > https://www.redhat.com/mailman/listinfo/k12osn
> > > For more info see <http://www.k12os.org>
> > >
> > >
> > ('<
> > ----------------+-------------------------------
> > /V\ Daniel Hedblom | Nipanskolan
> > <(_) ----------------+ Solleftea /__ /\
> > _______________________________________________
> > K12OSN mailing list
> > K12OSN at redhat.com
> > https://www.redhat.com/mailman/listinfo/k12osn
> > For more info see <http://www.k12os.org>
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> K12OSN mailing list
> K12OSN at redhat.com
> For more info see <http://www.k12os.org>
/V\ Daniel Hedblom | Nipanskolan
<(_) ----------------+ Solleftea /__ /\
More information about the K12OSN