View Full Version : Init/Shutdown sequence

21st March 2005, 04:33 AM
If I want a certain script to be executed everytime the machine is shtudown, halted or rebooted, where can I put that script ? This script must be executed before type another process is killed. Thanks.

21st March 2005, 04:36 AM
I am using Fedora.

21st March 2005, 05:26 AM
"/etc/init.d" and then do a:

"man chkconfig" for what runlevels to turn it on for, or to turn it off.....(hint, if you look at "/etc/inittab" and read the comments, you will see that "shutdown" is runlevel 0)