Reboot init script doesn't work
I'm having trouble getting a shell script to work that I want to call whenever the system is re-booted (init 6) or shutdown (init 0). I put the script in /etc/rc.d/init.d, make sure it is executable, and put a link to it in both /etc/rc.d/rc6.d and rc0.d. For now, to test, all the script does is print a line on the console using echo. I assign it a symbolic link name starting with "K" as required. The script is self-executing, ie: it starts with #!/bin/sh
What am I missing here?? (I'm running RedHat 9)
Thanks in advance for any help!