init script not running
hello everyone. iv been trying to write a init script that will run at both boot and shutdown. the script is to creat a ramdisk and copy a load of files to it at boot time and copy the files back to the harddrive at shutdown. from what i can see the script itself is working, ie if i run it on the command line with start or stop args it does what its supose to. iv saved the file in "/etc/rc.d/init" and iv added a symbolic link to "/etc/rc.d/rc5.d" called "S99ramdiskCache.sh" to call the script at boot and another link in "/etc/rc.d/rc0.d" called "K00ramdiskCache.sh" to call it at shutdown. at boot the script is being called as it should, but at shutdown it isnt being called. i cant see what can be the problem. what i want is for it to be the first script called at shutdown hence the "K00" prefix. my distro is FC4 and im using the 2.6.16-1.2108_FC4 kernal.
if anyone has any ideas of where im going wrong or need more info please write back. any help will be greatly appreciated :-)