List Info

Thread: RE: Leftover processes after users log out




RE: Leftover processes after users log out
country flaguser name
Netherlands
2007-04-03 04:02:14
Hello,

I have the same "problems" as the user on which I
reply. Why does this 
happen? I don't use ltsp, but I use Nomachine NX. The
processes that 
will stay running are gnome-panel and
bonobo-activation-server. And 
gnome-panel is using then a lot of CPU. What could be the
cause of this? 
They aren't zombies. I'm also running Ubuntu 6.10.

The session is started with the command: "dbus-launch 
--exit-with-session gnome-session". But when this
closes, it won't kill 
the other programs which are running with the session
itself.


edubuntu-users-requestlists.ubuntu.com wrote:

> I'm running Ubuntu 6.10 with the ltsp packages and have
2 quick
> questions:
>
> 1. I'm having problems with users logging out, but
leaving processes
> behind. (These aren't zombie processes, they're listed
as sleeping.)
> Does anyone have a script that will kill processes
owned by users who
> aren't currently logged in than I can run as a cron
job?
>
> 2. I noticed that ps -ef sometimes lists users by login
name and
> sometimes by uid and there doesn't seem to be a reason
for it. Anyone
> have any insight as to why? (P.S. I had some trouble
creating users; one
> person in particular seemed to exist in some in-between
state such that
> userdel said he didn't exist, but useradd said he did,
so I don't know
> if that could be the problem.)
>
> Thanks,
> Todd


Greetings,

-- 
Michiel Eghuizen
Eduwijs B.V.


-- 
edubuntu-users mailing list
edubuntu-userslists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users


Re: Leftover processes after users log out
user name
2007-04-03 04:31:08
Hi Eduwijs & Todd,

On Tue, 03 Apr 2007, Eduwijs beheer (Michiel) wrote:

> I have the same "problems" as the user on
which I reply. Why does this 
> happen? I don't use ltsp, but I use Nomachine NX. The
processes that 
> will stay running are gnome-panel and
bonobo-activation-server. And 
> gnome-panel is using then a lot of CPU. What could be
the cause of this? 
> They aren't zombies. I'm also running Ubuntu 6.10.
> 
> The session is started with the command:
"dbus-launch 
> --exit-with-session gnome-session". But when this
closes, it won't kill 
> the other programs which are running with the session
itself.

I'm not sure what the reason for the stale processes is, but
I recall
reading on the debian-edu lists that people were writing
workaround scripts
for clearing out old processes some months back.  A quick
search gives me:

	http://www.skolelinux.no/~klaus/newnotater/x4181.html

which assumes you are using KDM in that he suggests you hook
it into
/etc/kde2/kdm/Xreset.  As edubuntu doesn't use KDM, I
suppose you could
possibly put it in /etc/X11/Xsession or even in the
ssh_remote_command
variable in /opt/ltsp/i386/usr/sbin/ldm.

It also seems to presume nobody is logged in in two places
(which they
probably shouldn't anyway).

Gavin



-- 
edubuntu-users mailing list
edubuntu-userslists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users


Re: Leftover processes after users log out
country flaguser name
Netherlands
2007-04-03 04:36:53
Hello Gavin,

I also saw this post on the mailinglist: lists.ubuntu.com/msg00537.html">http://www.mail-archive.com/edubuntu-userslists.ubuntu.com/msg00537.html which also contains a script which can be executed by a cron-job. It works, so the scripting part won't be a problem.

But I find it rather strange that something like this happens. Because the programs are started as child of gnome-session, gnome-session itself should take care of the rest, right? So when the gnome-session gets a SIGTERM, it should kill it's child along with it, right?

Well, I see now, that gnome-session doesn't create childs, but that gnome-panel and other processes are created as seperated processes. So they are not childs (saw it with "ps fax"). But anyway, gnome-session does take care of your session, so he needs to kill the rest with it, right?

Greetings,

Michiel

Gavin McCullagh wrote:
gmail.com" type="cite">
Hi Eduwijs & Todd,

On Tue, 03 Apr 2007, Eduwijs beheer (Michiel) wrote:

  
I have the same "problems" as the user on which I reply. Why does this 
happen? I don't use ltsp, but I use Nomachine NX. The processes that 
will stay running are gnome-panel and bonobo-activation-server. And 
gnome-panel is using then a lot of CPU. What could be the cause of this? 
They aren't zombies. I'm also running Ubuntu 6.10.

The session is started with the command: "dbus-launch 
--exit-with-session gnome-session". But when this closes, it won't kill 
the other programs which are running with the session itself.
    

I'm not sure what the reason for the stale processes is, but I recall
reading on the debian-edu lists that people were writing workaround scripts
for clearing out old processes some months back.  A quick search gives me:

	http://www.skolelinux.no/~klaus/newnotater/x4181.html

which assumes you are using KDM in that he suggests you hook it into
/etc/kde2/kdm/Xreset.  As edubuntu doesn't use KDM, I suppose you could
possibly put it in /etc/X11/Xsession or even in the ssh_remote_command
variable in /opt/ltsp/i386/usr/sbin/ldm.

It also seems to presume nobody is logged in in two places (which they
probably shouldn't anyway).

Gavin


  

-- 
Michiel Eghuizen

Eduwijs BV
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )