I have written a script, /etc/rc.d/init.d/oradb, which will startup or shutdown my oracle database depending on which parameter I give it.(eg. ‘oradb start’ or ‘oradb stop’) These commands work. I also created a symbolic link to this file and it is: /etc/rc.d/rc3.d/S98oradb This works for starting my database. My problem is shutting down the database. I tried to do the same thing,(creating the file: /etc/rc.d/rc6.d/K60oradb and symbolicly linking it to /etc/rc.d/init.d/oradb) but it does not seem to do anything. I had thought that by doing this, anytime the system entered run level 6, or a reboot, that this would get executed much the same way my startup script does.
I know the actual script to start and stop the database works, because I can execute it and give it start and stop parameters, and it will start and stop the database. Both symbolic links to the file seem fine also, as I can execute ‘S98oradb start’ and ‘K60oradb stop’ and they work just fine.
I am not sure why, but it seems like it is not even executing the file /etc/rc.d/rc6.d.
Any help would be appriciated.