-   Linux - Server (
-   -   Run script on shutdown or reboot (

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?


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 09:08 PM.