Shutdown Scripts

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Patrick Fleming EA
Date:  
Subject: Shutdown Scripts
Are you rebooting or shutting down?
init 6 reboot
init 0 halt

On Mon, 6 Jan 2003, 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 -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>


--
Patrick Fleming, EA
http://myhdvest.com/patrickfleming
Licensed to represent taxpayers
before Exam, Appeals, and Conference
divisions of the IRS