aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrc.shutdown13
1 files changed, 6 insertions, 7 deletions
diff --git a/rc.shutdown b/rc.shutdown
index ad91f76..ea86f8f 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -19,6 +19,12 @@ run_hook shutdown_start
stop_all_daemons
+status "Deactivating Swap" swapoff -a
+
+# stop monitoring of lvm2 groups before unmounting filesystems
+[[ $USELVM = [Yy][Ee][Ss] && -x $(type -P lvm) ]] &&
+ status "Deactivating monitoring of LVM2 groups" vgchange --monitor n
+
run_hook shutdown_prekillall
kill_all
@@ -42,13 +48,6 @@ stat_done
# Write to wtmp file before unmounting
halt -w
-status "Deactivating Swap" swapoff -a
-
-# stop monitoring of lvm2 groups before unmounting filesystems
-[[ $USELVM = [Yy][Ee][Ss] && -x $(type -P lvm) && -d /sys/block ]] &&
- status "Deactivating monitoring of LVM2 groups" \
- vgchange --monitor n &>/dev/null
-
# if we don't have devtmpfs support, /dev is mounted as tmpfs, so don't unmount it
status "Unmounting Filesystems" \
umount -a -r -t nodevtmpfs,notmpfs,nosysfs,noproc,nodevpts -O no_netdev