mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
414 B

#!/bin/sh
echo "Sending all processes a SIGTERM (15)."
killall5 -15 || error=$? ; sleep 5
echo "Sending all processes a 2nd SIGTERM (15)."
killall5 -15 || error=$? ; sleep 5
echo "Sending all processes a SIGKILL (9)."
killall5 -9 || error=$? ; sleep 5
echo "Turning off swap devices."
swapoff -a || error=$?
sync ; sleep 1
echo "Unmounting filesystems."
umount -advf || error=$?
echo "Reboot ..."
reboot -f