I have just spent a couple of hours trying to figure out this Unix stuff and when/how startup scripts are run. I think it goes something like this, but someone who knows Unix can correct my mistakes. Note, I am typing this from memory, my Linux machine is at home... The scripts are run in the /sbin/init.d directory. For run level 2, they would be in subdirectory rc2.d. In rc2.d you will see a whole pile of filenames starting with either an S or a K. The scripts starting with S are Start scripts, the scripts with a K are Kill scripts. Just after the letter there is a two digit number, e.g. S04network. The number is used to specify the order or priority that the scripts are run in. I think the lower numbers are run first. Copy one of the existing scripts to your chosen start or kill number and just edit it. In each script there is usually a start and a stop condition....just have a go and see how you get on. A book on how select statements are done in shell scripts might help :) You may be lucky and find a script that already does the sort of thing you want to do, you could then just add to it. Completely aside from this, I discovered how to add lots of IP addresses to a network card without editing any of these files, it can be done in Yast, its just not obvious and I don't think it is written in any of the FAQs or HOWTOs. For anyone interested, after adding your first IP address to say eth0, you can add more devices of type <other> and call then eth0:0, eth0:1, etc. and otherwise treat them like your main eth0 device as far as IP address, activation, subnetting are concerned. The S04network and (I think) S07route scripts will correctly add the ip address and routes from rc.config for you. Kieran Sullivan
-----Original Message----- From: owner-suse-linux-e@suse.com [<A HREF="mailto:owner-suse-linux-e@suse.com]On">mailto:owner-suse-linux-e@suse.com]On</A> Behalf Of David Sent: Wednesday, November 11, 1998 7:34 PM To: suse-linux-e Subject: [SuSE Linux] running a script at init level 2
How do I get a file to run at init level 2? Website <A HREF="http://www.eclipsecat.com"><A HREF="http://www.eclipsecat.com</A">http://www.eclipsecat.com</A</A>> The home of Advantage Software the makers of Eclipse
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e