On Sun, Feb 29, 2004 at 09:56:25PM +0100, Jesper Berth wrote: > I have a little problem with my ltsp installation, i am running a server > for 16 klients on a school with 75 students, my problem is that one or > two times a day some students can't open Openoffice or Mozilla Firefox. > if i run a ps -aU "user" i can see that eigther OOO or Firefox is > running... > > Ones a week a come to this school and have to manually kill those > processes, can't i make a script that runs every 15min and kills these > jobs, have thought something like this > > it should kill all processes of group users, if user isn't logged on the > computer, anyone who can help me ??
In my opinion, the Right Way To Do This [tm] is to simply (a) forbid a user from logging on on two clients at the same time (see the list archives for how to do this), and (b) kill all a user's processes after that session returns to the login screen (by whatever means). This requires code to keep track of which user was last logged on to each client. Then all they need to do - at most - is logout and login again. Most times, in my experience, it is caused by an incomplete or nonexistent logout, so most times it wouldn't even be necessary to log out to fix the problem, because the processes would have already been killed. I know (a) can be done. Has anyone implemented (b)? If so, please post instructions! It would be highly appreciated! -- Robin Comment found in leaked MS code, in private\ntos\w32\ntuser\client\nt6\user.h: "* The magnitude of this hack compares favorably with that of the national debt."
pgp00000.pgp
Description: PGP signature
