diff options
author | Bill Nottingham <notting@redhat.com> | 1999-05-19 03:06:42 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-05-19 03:06:42 +0000 |
commit | f9a3c6f84910b9551a16a015fc4f79ef57da58a1 (patch) | |
tree | 03cca4bf90a2eefe7e36b612f33ff0e15ff8439a | |
parent | bfdb5f2f73940db0029812f67d2ae570e2d2852f (diff) | |
download | initscripts-f9a3c6f84910b9551a16a015fc4f79ef57da58a1.tar initscripts-f9a3c6f84910b9551a16a015fc4f79ef57da58a1.tar.gz initscripts-f9a3c6f84910b9551a16a015fc4f79ef57da58a1.tar.bz2 initscripts-f9a3c6f84910b9551a16a015fc4f79ef57da58a1.tar.xz initscripts-f9a3c6f84910b9551a16a015fc4f79ef57da58a1.zip |
clean up /var more completely
-rwxr-xr-x | rc.d/rc.sysinit | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index cdc2a8f6..a0b2971b 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -291,18 +291,27 @@ touch /var/log/wtmp chgrp utmp /var/run/utmp /var/log/wtmp chmod 0664 /var/run/utmp /var/log/wtmp +# Clean up /var +for afile in /var/lock/* /var/run/*; do + if [ -d $afile ]; then + rm -f $afile/* + else + rm -f $afile + fi +done + # Delete pam_console lock and refcount files -rm -f /var/lock/console.lock -rm -f /var/lock/console/* +#rm -f /var/lock/console.lock +#rm -f /var/lock/console/* # Delete UUCP lock files. -rm -f /var/lock/LCK* +#rm -f /var/lock/LCK* # Delete stale subsystem files. -rm -f /var/lock/subsys/* +#rm -f /var/lock/subsys/* # Delete stale pid files -rm -f /var/run/*.pid +#rm -f /var/run/*.pid # Delete X locks rm -f /tmp/.X*-lock |