Leftover processes after users log out
Eduwijs beheer (Michiel)
michiel at eduwijs.nl
Tue Apr 3 10:36:53 BST 2007
Hello Gavin,
I also saw this post on the mailinglist:
http://www.mail-archive.com/edubuntu-users@lists.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:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/edubuntu-users/attachments/20070403/d6900e7d/attachment-0001.htm
More information about the edubuntu-users
mailing list