aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/halt
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-08-02 22:44:17 +0000
committerBill Nottingham <notting@redhat.com>2000-08-02 22:44:17 +0000
commit8c707066217b593d2af97d30062c94a18703687c (patch)
tree9a53f524779d62d822f389636584df63bb14db2d /rc.d/init.d/halt
parent6d7fceb323c2ca6555d5aea91dfe857fda3290f2 (diff)
downloadinitscripts-8c707066217b593d2af97d30062c94a18703687c.tar
initscripts-8c707066217b593d2af97d30062c94a18703687c.tar.gz
initscripts-8c707066217b593d2af97d30062c94a18703687c.tar.bz2
initscripts-8c707066217b593d2af97d30062c94a18703687c.tar.xz
initscripts-8c707066217b593d2af97d30062c94a18703687c.zip
colons. Lots of colons. More colons than most gastrointestinal clinics.
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-xrc.d/init.d/halt18
1 files changed, 9 insertions, 9 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index fc463b21..48b3a328 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -45,7 +45,7 @@ esac
runcmd "Sending all processes the TERM signal..." /sbin/killall5 -15
sleep 5
-runcmd "Sending all processes the KILL signal.." /sbin/killall5 -9
+runcmd "Sending all processes the KILL signal..." /sbin/killall5 -9
# Write to wtmp file before unmounting /var
halt -w
@@ -58,11 +58,11 @@ fi
# Turn off swap, then unmount file systems.
SWAPS=`awk '! /^Filename/ { print $1 }' /proc/swaps`
-[ -n "$SWAPS" ] && runcmd "Turning off swap" swapoff $SWAPS
+[ -n "$SWAPS" ] && runcmd "Turning off swap: " swapoff $SWAPS
-[ -x /sbin/accton ] && runcmd "Turning off accounting" /sbin/accton
+[ -x /sbin/accton ] && runcmd "Turning off accounting: " /sbin/accton
-[ -x /sbin/quotaoff ] && runcmd "Turning off quotas" /sbin/quotaoff -a
+[ -x /sbin/quotaoff ] && runcmd "Turning off quotas: " /sbin/quotaoff -a
# Unmount file systems, killing processes if we have to.
sig=
@@ -71,9 +71,9 @@ remaining=`awk '!/(^#|proc|loopfs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mo
while [ -n "$remaining" -a "$retry" -gt 0 ]
do
if [ "$retry" -lt 3 ]; then
- runcmd "Unmounting file systems (retry)" umount -a -f -t noproc
+ runcmd "Unmounting file systems (retry): " umount -a -f -t noproc
else
- runcmd "Unmounting file systems" umount -a -f -t noproc
+ runcmd "Unmounting file systems: " umount -a -f -t noproc
fi
sleep 2
remaining=`awk '!/(^#|proc|loopfs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts`
@@ -92,11 +92,11 @@ if [ -x /sbin/raidstop -a -f /etc/raidtab ]; then
if [ -f /proc/mdstat ] ; then
mddevs=$(grep ^md /proc/mdstat | awk '{ print $1 }')
for mddev in $mddevs ; do
- runcmd "Turning off RAID for $mddev" raidstop /dev/$mddev
+ runcmd "Turning off RAID for $mddev: " raidstop /dev/$mddev
done
unset mddev mddevs
fi
- #runcmd "Turning off RAID" /sbin/raidstop -a
+ #runcmd "Turning off RAID: " /sbin/raidstop -a
fi
[ -f /proc/bus/usb/devices ] && umount /proc/bus/usb
@@ -107,7 +107,7 @@ mount | awk '/ext2/ { print $3 }' | while read line; do
mount -n -o ro,remount $line
done
-runcmd "Unmounting proc file system" umount /proc
+runcmd "Unmounting proc file system: " umount /proc
# Now halt or reboot.
echo "$message"