View Full Version : Launching a script on boot (rh 9.0)
BadSpeed
03-30-2005, 09:48 AM
Hi,
I have a redhat 9.0 and I was wondering how can I execute a shell script evry time that the server boots ?? :D
jmstacey
03-30-2005, 11:07 PM
You add the script to the rc.d or init.d directory, whichever the case may be.
jlasman
03-31-2005, 12:08 AM
Jon, your solution will NOT automatically run the script.
If it only has to run at boot, and not at shutdown, the best way to do it is to call it from:
/etc/rc.d/rc.local
Jeff
BadSpeed
03-31-2005, 09:14 AM
Works great thx a lot !
jmstacey
03-31-2005, 11:24 PM
Originally posted by jlasman
Jon, your solution will NOT automatically run the script.
Alright. Using Debian here, so just giving the general area to look.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.