3 echo "Sending all processes a SIGTERM (15)."
4 killall5
-15 || error
=$?
; sleep 5
6 echo "Sending all processes a 2nd SIGTERM (15)."
7 killall5
-15 || error
=$?
; sleep 5
9 echo "Sending all processes a SIGKILL (9)."
10 killall5
-9 || error
=$?
; sleep 5
12 echo "Turning off swap devices."
13 swapoff
-a || error
=$?
16 echo "Unmounting filesystems."
17 umount
-avf || error
=$?
19 if [[ "$*" = *-h* ]]; then
23 echo "Rebooting the system."