[TriLUG] how to get /etc/rcd.6/ to perform an action

Jon Carnes jonc at nc.rr.com
Tue Sep 16 23:20:42 EDT 2003


The easiest way would probably be to let:
  /etc/rc.d/init.d/killall 

call rc.local.shutdown (assuming that is the name of a script you
created).


But if you wanted to have it run as a process all by itself then you
probably need to rename:
   S00killall  ===>  S02killall
   S01reboot   ===>  S03reboot

And then add yours as S01local.shutdown (really a sym-link to the
script), so that it would run before the other two processes (killall
and reboot).

Enjoy! - Jon Carnes

On Tue, 2003-09-16 at 20:09, Ralph Blach wrote:
> I have a redhat 9.0 machine and I would like shutdown so perform some
> extra action.  How do I create and rc.local.shutdown that will run when
> run level 6 is entered?
> 
> Thanks
> 
> Chip




More information about the TriLUG mailing list