Redhat 5 enterprise auto kill script

hi all

do i need to add rc. prefix on the stop script all the time especially on redhat 5 enterprise? like below

ln -s /etc/init.d/rc.stopdb2 /etc/rc0.d/K01rc.stopdb2

and on the /etc/rc.local, i need to add this only

touch /var/lock/subsys/stopdb2

Is that going to work?

thanks in advance

---------- Post updated at 05:49 PM ---------- Previous update was at 11:54 AM ----------

i tested it, it's optional...

you should copy the rc script to /etc/init.d and then add it as a service with the chkconfig command. there are plenty of examples out there or you can use the existing scripts in /etc/init.d as a template.

1 Like