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

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