aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-03-02 03:41:29 +0000
committerBill Nottingham <notting@redhat.com>2004-03-02 03:41:29 +0000
commitdad389266b3638d07cf65b14cb3803177aaac26c (patch)
tree105d51f3c52c9e83d08bae664134bdbbaf6e8c6c
parent0564b018694c2d6cdfb8426caebaf91733de4221 (diff)
downloadinitscripts-dad389266b3638d07cf65b14cb3803177aaac26c.tar
initscripts-dad389266b3638d07cf65b14cb3803177aaac26c.tar.gz
initscripts-dad389266b3638d07cf65b14cb3803177aaac26c.tar.bz2
initscripts-dad389266b3638d07cf65b14cb3803177aaac26c.tar.xz
initscripts-dad389266b3638d07cf65b14cb3803177aaac26c.zip
clean up /tmp some more (#117117)
-rwxr-xr-xrc.d/rc.sysinit16
1 files changed, 5 insertions, 11 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 0029e083..30a651b8 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -672,17 +672,11 @@ if [ -n "$_NEED_XFILES" ]; then
chmod 0664 /var/run/utmpx /var/log/wtmpx
fi
-# Delete X locks
-rm -f /tmp/.X*-lock
-
-# Delete VNC & X locks
-rm -rf /tmp/.X*-unix
-
-# Delete ICE locks
-rm -rf /tmp/.ICE-unix
-
-# Delete Postgres sockets
-rm -f /tmp/.s.PGSQL.*
+# Clean up various /tmp bits
+rm -f /tmp/.X*-lock /tmp/.lock.* /tmp/.gdm_socket /tmp/.s.PGSQL.*
+rm -rf /tmp/.X*-unix /tmp/.ICE-unix /tmp/.font-unix /tmp/hsperfdata_* \
+ /tmp/kde-* /tmp/ksocket-* /tmp/mc-* /tmp/mcop-* /tmp/orbit-* \
+ /tmp/scrollkeeper-* /tmp/ssh-*
# Now turn on swap in case we swap to files.
swapon -a