Shutdown Scripts

Startseite
Anhänge:
Nachricht
+ (text/plain)
Nachricht löschen
Nachricht beantworten
Autor: Simper, Brian D
Datum:  
Betreff: 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