From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Description of problem: The /etc/rc.d/rc.sysinit could clean up a few of the common chaff that is left around in /tmp from the likes of ssh, gnome, KDE and friends. Version-Release number of selected component (if applicable): initscripts-7.31.9.EL-1 How reproducible: Always Steps to Reproduce: 1.crash a system with lots of interactive stuff running 2.boot 3.ls -a /tmp Actual Results: Lots of stuff left over in /tmp. For example: /tmp/.font-unix /tmp/.gdm_socket /tmp/hsperfdata_* /tmp/kde-* /tmp/ksocket-* /tmp/.lock.* /tmp/mc-* /tmp/mcop-* /tmp/orbit-* /tmp/scrollkeeper-* /tmp/ssh-* Expected Results: Less stuff left over in /tmp. Additional info: This problems also exists in RH9 and Fedora Core 1. The patch attached will with with RH9, Fedora, and RHEL.
Created attachment 98126 [details] patch to /etc/rc.d/rc.sysinit to clean up /tmp more on startup
In the ancient days of Un*x (in the 1970's and later), the /tmp file system was cleaned and/or rebuilt after every reboot. I'm not suggesting that this be done. I am suggesting that some of the common cruft could be cleaned out. In some cases components can become confused about the state of the world when they find old cruft in /tmp from a previous reboot. Clearing out these files in /tmp avoids such problems and keeps /tmp a bit more tidy.
Added in CVS, will be in the next major RHEL release (merged with the other cleanup, and tweaked so we don't call /bin/rm 10 times. :) )