PDA

View Full Version : inserting scripts during startup



pankajgadhari
12-05-2003, 12:50 PM
hi all
if i want a particular script to be started at the boot time , what i should do , where to copy that script, and what are the procedures.

Actually, on knoppix page it is given that copy that script to /etc/rc5.d/ .
i had done that , but its not working, is there any other way to do that
plz tellme
thanks

rudiz
12-05-2003, 05:18 PM
chmod +x scriptname
./scriptname

arkaine23
12-05-2003, 10:09 PM
If you put the script in /etc/rc5.d, you need to follow the rc naming scheme. So it should be named-

S##scriptname

S tells rc that the script should be started, the ## will tell it when (relative to other services) to run the script. 99 would be the last thing to run, 01 would be the first. You probably want it after 70 if it requires other networking services to already be running. Sticking it as last or nearly last is usually safest.