Creating the halt script

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



cat > halt << "EOF"
#!/bin/sh
# Begin /etc/init.d/halt

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

# End /etc/init.d/halt
EOF