aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-05-24 20:52:31 +0000
committerBill Nottingham <notting@redhat.com>1999-05-24 20:52:31 +0000
commit2e03191317d895267ef1c22a7f07224ddf4818b6 (patch)
tree676fd9d27372d6f956d7d6d382f98d4998d6fe1d
parent4e1b347451e0a87cd0742bdbdd2c745c010ce18f (diff)
downloadinitscripts-2e03191317d895267ef1c22a7f07224ddf4818b6.tar
initscripts-2e03191317d895267ef1c22a7f07224ddf4818b6.tar.gz
initscripts-2e03191317d895267ef1c22a7f07224ddf4818b6.tar.bz2
initscripts-2e03191317d895267ef1c22a7f07224ddf4818b6.tar.xz
initscripts-2e03191317d895267ef1c22a7f07224ddf4818b6.zip
comment clean out of /var
-rwxr-xr-xrc.d/rc.sysinit14
1 files changed, 1 insertions, 13 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index a0b2971b..f0a2b31c 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -292,6 +292,7 @@ chgrp utmp /var/run/utmp /var/log/wtmp
chmod 0664 /var/run/utmp /var/log/wtmp
# Clean up /var
+# I'd use find, but /usr may not be mounted.
for afile in /var/lock/* /var/run/*; do
if [ -d $afile ]; then
rm -f $afile/*
@@ -300,19 +301,6 @@ for afile in /var/lock/* /var/run/*; do
fi
done
-# Delete pam_console lock and refcount files
-#rm -f /var/lock/console.lock
-#rm -f /var/lock/console/*
-
-# Delete UUCP lock files.
-#rm -f /var/lock/LCK*
-
-# Delete stale subsystem files.
-#rm -f /var/lock/subsys/*
-
-# Delete stale pid files
-#rm -f /var/run/*.pid
-
# Delete X locks
rm -f /tmp/.X*-lock