aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-07-15 20:44:11 +0000
committerBill Nottingham <notting@redhat.com>2002-07-15 20:44:11 +0000
commit23428efc712d46b0a90ae81062b317cd89f242ed (patch)
treee0f5d37c1b0340b65067eb5a99ba3c872b793bda /rc.d/rc.sysinit
parent3a03bf05c5165fd7bfc787615f3e7d58059ece9c (diff)
downloadinitscripts-23428efc712d46b0a90ae81062b317cd89f242ed.tar
initscripts-23428efc712d46b0a90ae81062b317cd89f242ed.tar.gz
initscripts-23428efc712d46b0a90ae81062b317cd89f242ed.tar.bz2
initscripts-23428efc712d46b0a90ae81062b317cd89f242ed.tar.xz
initscripts-23428efc712d46b0a90ae81062b317cd89f242ed.zip
fix boottime cleanup, add cleanup of ICE files
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit12
1 files changed, 9 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 0c866bce..bc68c778 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -574,11 +574,14 @@ _NEED_XFILES=
# Clean up /var. I'd use find, but /usr may not be mounted.
for afile in /var/lock/* /var/run/* ; do
- [ -d "$afile" ] || continue
- case "`basename $afile`" in
+ if [ -d "$afile" ]; then
+ case "`basename $afile`" in
news|sudo|mon) ;;
*) rm -f $afile/* ;;
- esac
+ esac
+ else
+ rm -f $afile
+ fi
done
rm -f /var/lib/rpm/__db*
@@ -604,6 +607,9 @@ 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.*