Grant Walton wrote:
I have a dumb question : I still am not sure exactly where to add commands to run programmes I want to start at boot time; I want my ISDN dial server to start automatically whenever the machine is booted. Where do I put this command?
If you already know how to do it manually, put all the necessary commands in a shell script and execute that script from /etc/rc.d/boot.local. The SuSE manual deals with ISDN connections, there may be some instructions there as to how to start it at boot time. There is an alternative way of doing it using the init program. As you may know, init is in charge of starting or stopping a number of programs/daemons/services according to the system "run level." It does it by running the scripts in /etc/rc.d/rc0.d, /etc/rc.d/rc1.d, etc. In the SuSE system, level 1 is non-networked system, 2 is multi-user networked, 3 multi-user with a graphic console, etc. In your case you want to run your ISDN dial out script in levels 2 and 3. Try these steps: - Create your dial out script as "/usr/local/bin/dialisdn" - Copy /etc/rc.d/skeleton to /etc/rc.d/myisdn, we'll use it as template - In myisdn, replace "START_FOO" for "START_MYISDN", "/usr/sbin/foo" for "/usr/local/bin/dialisdn" - Add an entry "START_MYISDN=yes" in /etc/rc.config - Create these links: # cd /etc/rc.d/rc2.d # ln -s ../myisdn S05myisdn # ln -s ../myisdn K38myisdn # cd /etc/rc.d/rc3.d # ln -s ../myisdn S05myisdn # ln -s ../myisdn K38myisdn The numbers in the links give a hint as to the order in which the scripts should be run, examine yours and modify accordingly. For example, mysidn should be started before you call the "route" script. - Create this link: # cd /sbin # ln -s init.d/myisdn rcmyisdn (as you may have noticed /etc/rc.d is a link to /sbin/init.d) - You should be ready to go. Try # rcmyisdn start if the script executes successfully, you'll see a "done" message. You can also try switching run levels: # init 1 (takes you off the network) # init 2 (you should see your script being started) The SuSE manual is good at explaining all these (and where I learned it,) take a look at it. -- Rafael -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/