General discussion
-
Topic
-
Running a script at shutdown and reboot
LockedI would like to run a script I have, upon shutdown or reboot, to shutdown my database on a RH 6.1 Linux. I created a symbolic link in the /etc/rc.d/rc0.d and rc6.d directories that point to a file in /etc/rc.d/init.d. I named the file something like K95dbshut in the two rc* directories. These files was linked to a file called dbshut, located in my /etc/rc.d/init.d directory.
I thought this was how to execute things upon shutdown and restart, but it does not seem to be executing the script.
Please let me know if this way is correct or if I should be doing something else. Thanks.
All Comments
Viewing 1 reply thread