diff options
author | Bill Nottingham <notting@redhat.com> | 1999-09-20 18:42:10 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-09-20 18:42:10 +0000 |
commit | eff4f33b3db73782716eaccd2eed1af5f7f0fb5d (patch) | |
tree | 0aa83ab2ebd3bd5b20f9594715ff94308284f39e /rc.d | |
parent | e76bf80cda0151c2095f81d322f21cb1a9a09b60 (diff) | |
download | initscripts-eff4f33b3db73782716eaccd2eed1af5f7f0fb5d.tar initscripts-eff4f33b3db73782716eaccd2eed1af5f7f0fb5d.tar.gz initscripts-eff4f33b3db73782716eaccd2eed1af5f7f0fb5d.tar.bz2 initscripts-eff4f33b3db73782716eaccd2eed1af5f7f0fb5d.tar.xz initscripts-eff4f33b3db73782716eaccd2eed1af5f7f0fb5d.zip |
just call swapoff oncer4-43
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/halt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 7efea30b..7c7fbf70 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -57,12 +57,10 @@ if [ $? = 0 ]; then fi # Turn off swap, then unmount file systems. -runcmd "Turning off swap and accounting" swapoff -a -# Turn off other swap that isn't in /etc/fstab -OTHERSWAP=`awk '! /^Filename/ { print $1 }' /proc/swaps` -[ -n "$OTHERSWAP" ] && swapoff $OTHERSWAP +SWAPS=`awk '! /^Filename/ { print $1 }' /proc/swaps` +[ -n "$SWAPS" ] && runcmd "Turning off swap" swapoff $SWAPS -[ -x /sbin/accton ] && /sbin/accton +[ -x /sbin/accton ] && runcmd "Turning off accounting" /sbin/accton # Unmount file systems, killing processes if we have to. sig= |