Today I was creating a new init script on RHEL6. This isn't something I've had to do often.
I ran into the common problem that although the new script successfully started and stopped the service from command line and also started it on reboot it did NOT stop it before the server went down when the shutdown was done.
The reason for that is because on RHEL they run a killall script that checks for files in /var/lock/subsys and only run the "stop" portion...