> > If you want to run something upon executing shutdown, or halt, you can
> > either add the commands directly to /etc/rc.d/init.d/halt or add a shell
> > script to that file that calls the commands you wish to execute.

> I would advise not to touch the standard scripts like
> /etc/rc.d/init.d/halt, but to write your own script which does what you
> want, put it into /etc/rc.d/init.d/ sub-directory and add this script name
> into the list of those executed at the 6th runlevel. If you have KDE
> installed then just use the utility with the name like 'SysVinit', if not
> you'll probably have to do it manually as the standard runlevels utility
> from the control-panel does not allow to edit this (6th) runlevel.
> Just go into the sub-directory with the number which corresponds to the
> runlevel you want to edit (this is in /etc/rc.d directory) and add links
> to the script you've written. 

Your correct, my advise was terrible.  It was late at night, and his
talking about using the rc.sysinit file thru me off..

Anyway, I typically put the file in the init.d directory, and make a link
from rc[06].d using `K' as the first char so it gets executed upon
shutdown...

Dave



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to