|Free Software at Schools: Installing and Maintaining a Skolelinux/Debian-edu Network; Based on Debian Sarge, prerelease pr05|
|Prev||Appendix D. Various "Homemade" Solutions||Next|
It's a bit of a problem when OpenOffice.org often freezes when ending the program, even after the user has logged out. It seems as if shutting off OpenOffice by clicking on the "x" up in the right corner doesn't really do the job right. And if OpenOffice freezes that way, it may not start again when the next user logs on.
There is a way to ensure that all processes really are finished when a user logs out.
Ensuring that all Processes are Finished
This is the script that does the job. It is already installed on your server, and is called logoutkill.sh
To make sure that this script is run every time the user logs out, use a text editor to add this line
/usr/share/debian-edu-config/tools/logoutkill.sh $USERto the file /etc/kde3/kdm/Xreset in such a way that it looks like this afterwards:
#! /bin/sh # Xreset - run as root after session exits # Reassign ownership of the console to root, this should disallow # assignment of console output to any random users's xterm. See Xstartup. # #chown root /dev/console #chmod 622 /dev/console /usr/share/debian-edu-config/tools/logoutkill.sh $USER if grep -qs '^use-sessreg' /etc/kde3/kdm/kdm.options && \ which sessreg > /dev/null 2>&1; then exec sessreg -d -l "$DISPLAY" -u /var/run/utmp \ -x /etc/kde3/kdm/Xservers "$USER" # NOTREACHED fi
This script will make certain that all processes currently run by a user will really be terminated when he logs out, with the exception of root processes.