We really need to revisit this spec for Hardy Heron
Scott Balneaves
sbalneav at legalaid.mb.ca
Sun Sep 2 17:35:49 BST 2007
On Sun, Sep 02, 2007 at 11:43:00AM -0400, David Trask wrote:
> >pkill tuxpaint.
> Doh! killall tuxpaint didn't work....
pkill -9?
> The issue is....kid does somethign stupid and quits mid-session....turns
> terminal off...program freezes...etc. Then when they log back in
> again....the system still has that lingering process(es) from the previous
> session. Mozilla used to be a big problem in the old days....nowadays
> Firefox can cause issues. It still sees the default profile as still
> being in use. The purge users script is essentially set up to purge the
> old processes as the user logs in. Do you think this is something that
> could be done "PreSession"? Something along the lines of....whoever is
> logging in "now"....kill off all previous processes associated with them.
> I believe Eric did it with pkill. Any ideas on how I can run something
> like this early enough in the logon process without killing the current
> session?
https://wiki.ubuntu.com/LDMrcScripts
place in /opt/ltsp/i386/usr/share/ldm/rc.d/S10cleaner
Off the top of my head (not tested)
#
# Session script to clean up previous session
# WARNING! WILL KILL ANY CONCURRENT USER LOGINS
#
PROCSTOKILL="Xsession gconfd firfox tuxpaint etc etc"
for PROC in ${PROCSTOKILL}; do
ssh -S ${LDM_SOCKET} ${LDM_SERVER} "pkill -9 ${PROC}"
done
Scott
--
Scott L. Balneaves | "Eternity is a very long time,
Systems Department | especially towards the end."
Legal Aid Manitoba | -- Woody Allen
More information about the edubuntu-users
mailing list