Running a script at shutdown and reboot - TechRepublic
General discussion
June 22, 2000 at 10:00 AM
cp409sd

Running a script at shutdown and reboot

by cp409sd . Updated 25 years, 11 months ago

I 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.

This discussion is locked

All Comments