On Thu, 7 May 1998, Dave Wreski wrote:

> 
> > I'm wondering where, if anyplace, RedHat has a place for custom commands
> > to be exectuted upon shutdown, similar to /etc/rc.d/rc.local or
> > /etc/rc.d/rc.sysinit. I'm sharing my swap partition with Windows 95 (as
> > described in the Tips HOWTO), but currently I have to manually run a
> > script to properly initialize this for windows before I boot into
> > Windows.
> 
> 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.
> 
> Dave
> 

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. 

Good luck,
Alexei


-- 
  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