6 . /etc/rc.d/functions.rc
9 # Send SIGTERM then SIGKILL to all processes
10 # loop until killall5 reports all done, or timeout
11 # killall5 does not support the 0 signal, so we use SIGCONT for
12 # checking (which should be ignored)
18 for i in $(seq 1 $2); do
22 test $? -eq 2 && return 0
29 status_begin "Sending SIGTERM to processes"
33 status_begin "Sending SIGKILL to processes"
39 text -x /etc/rc.local.shutdown && /etc/rc.local.shutdown
49 STOPDAEMONS=$(reverse $DAEMONS)
51 for D in $STOPDAEMONS; do
58 if is_true "$USELVM" && [ -x /sbin/vgchange ]; then
59 status_begin "Deactivating monitoring of LVM2 groups"
60 /sbin/vgchange --monitor n
64 if [ -x /sbin/udevadm ]; then
65 status_begin "Shutting down udev"
66 /sbin/udevadm control --exit
72 status_begin "Unmounting swap-backed filesystems"
76 status_begin "Deactivating swap"
80 status_begin "Unmounting non-API filesystems"
81 umount -a -t nodevtmpfs
84 status_begin "Remounting root filesystem read-only"
90 if [ $RUNLEVEL -eq 0 ]; then