Shutdown Scripts

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Simper, Brian D
Dátum:  
Tárgy: Shutdown Scripts
I have a short script that I want to run on my Red Hat system at every =
shutdown or reboot. I registered it with chkconfig and placed a symlink =
at=20

    /etc/rc.d/rc6.d/K01run --> ../init.d/run


It has never run. The first line of the script writes the command line =
to a log file and it consistently runs at start (rc3.d/S95run) but I =
have never seen it operate at shutdown and write a "stop" command to the =
log file. Does anyone know what trick can make this work?

Thanks,

Brian