Creating the halt script

Create a new file /etc/init.d/halt containing the following:



#!/bin/sh
# Begin /etc/init.d/halt

/sbin/halt -d -f -i -p

# End /etc/init.d/halt