LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Run script on shutdown or reboot (http://www.linuxquestions.org/questions/linux-server-73/run-script-on-shutdown-or-reboot-678598/)

VeeDubbs 10-23-2008 12:33 PM

Run script on shutdown or reboot
 
Hi all -

I either can't remember or never knew the answer to this. Where would I put a script that I want to run on shutdowns and reboots on Red Hat Enterprise server? Would it go in /etc/rc5.d (or any other rc*.d directory) with a K in front of it?

Thanks!

indienick 10-23-2008 01:34 PM

Probably. I believe you could also put the necessary scripts in the rc.S/ folder, but that's a world I never delve in to.


All times are GMT -5. The time now is 05:01 AM.