aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-06-14 14:44:11 +0000
committerBill Nottingham <notting@redhat.com>1999-06-14 14:44:11 +0000
commit5a91ea94fda39aa17a742d720eb2de9adf33a3c4 (patch)
tree7294aca9cf1f93f344ba8c7c86756ae7e6115b67
parent98ac61c5e351c23e5bc2cad35fa6f992a6c6387c (diff)
downloadinitscripts-5a91ea94fda39aa17a742d720eb2de9adf33a3c4.tar
initscripts-5a91ea94fda39aa17a742d720eb2de9adf33a3c4.tar.gz
initscripts-5a91ea94fda39aa17a742d720eb2de9adf33a3c4.tar.bz2
initscripts-5a91ea94fda39aa17a742d720eb2de9adf33a3c4.tar.xz
initscripts-5a91ea94fda39aa17a742d720eb2de9adf33a3c4.zip
um, it makes very little sense to touch /var/run/utmp and promptly remove it.
-rwxr-xr-xrc.d/rc.sysinit10
1 files changed, 6 insertions, 4 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 45cc5e22..a0ea9fbf 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -291,10 +291,6 @@ fi
# Clean out /etc.
rm -f /etc/mtab~ /fastboot /fsckoptions /forcefsck
->/var/run/utmp
-touch /var/log/wtmp
-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.
@@ -306,6 +302,12 @@ for afile in /var/lock/* /var/run/*; do
fi
done
+# Clean up utmp/wtmp
+>/var/run/utmp
+touch /var/log/wtmp
+chgrp utmp /var/run/utmp /var/log/wtmp
+chmod 0664 /var/run/utmp /var/log/wtmp
+
# Delete X locks
rm -f /tmp/.X*-lock