aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-12-08 16:36:44 +0000
committerBill Nottingham <notting@redhat.com>1999-12-08 16:36:44 +0000
commit2bbdcc88c616c7157284b82062caab4d351207fc (patch)
treed1550523acd98e9e376d284e171ae5088f44bf57 /rc.d/init.d
parentbd6628a00bf39fae3cc1c8ba17fdd8bee515caa1 (diff)
downloadinitscripts-2bbdcc88c616c7157284b82062caab4d351207fc.tar
initscripts-2bbdcc88c616c7157284b82062caab4d351207fc.tar.gz
initscripts-2bbdcc88c616c7157284b82062caab4d351207fc.tar.bz2
initscripts-2bbdcc88c616c7157284b82062caab4d351207fc.tar.xz
initscripts-2bbdcc88c616c7157284b82062caab4d351207fc.zip
unmount /proc after we're done with it.
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/halt4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index e558d1d1..6d832914 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -83,7 +83,7 @@ do
retry=$(($retry-1))
sig=-9
done
-runcmd "Unmounting proc file system" umount /proc
+
mount -n -o remount,ro /
# turn off raid
@@ -101,6 +101,8 @@ if [ -x /sbin/raidstop -a -f /etc/raidtab ]; then
#runcmd "Turning off RAID" /sbin/raidstop -a
fi
+runcmd "Unmounting proc file system" umount /proc
+
# Remount read only anything that's left mounted.
#echo "Remounting remaining filesystems (if any) readonly"
mount | awk '/ext2/ { print $3 }' | while read line; do