On Tue, 7 Oct 2003, Amit vyas wrote:
> GDM has problems LTSP package could use KDM as default ar provide with
> additional scripts that could handle this.
> I am not able to switch to KDM, and still rebooting the server for it to
> start fresh sessions.
> My server gets very slow after sometime.
> My gdm is set to respond 100 sessions.
The simple solution is to run the following script from cron every night:

#kill old leftover processes  - all of them

users=$(awk -F":" '{if ( $3 >= 500 ) print $1}' /etc/passwd | grep -v -e
smb -e
^nfs )
for user in $users
do
#echo $user

        processes=$(ps -ef | grep ^"$user " | grep -e Jan[0-9] -e Feb[0-9]
-e Mar[0-9] -e Apr[0-9] -e May[0-9] -e Jun[0-9] -e Jul[0-9] -e Aug[0-9] -e
Sep[0-9] -e Oct[0-9] -e Nov[0-9] -e Dec[0-9] |awk '{print $2}')

        for process in $processes
        do
                kill -9 $process
        done

done



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to