Shutdown Scripts

George Toft plug-discuss@lists.plug.phoenix.az.us
Tue, 07 Jan 2003 02:00:51 -0500


"Simper, Brian D" wrote:
> 
> 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
> 
>         /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
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


I have a similar situation, and I put it in /etc/rc3.d/ and /etc/rc5.d/
- seems to work ok.

George