Hi 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? Thanks Grant. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HEAD> <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type> <META content="MSHTML 5.00.2614.3500" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>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?</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>Thanks</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>Grant.</FONT></DIV></BODY>
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/
Hi, short answer: /sbin/init.d/boot.local This file executed when all run levels completed at boot time. ps: please send plain text messages to the list.
Grant Walton wrote:
Hi
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?
Thanks
Grant.
-- 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/
Grant Walton wrote:
Hi
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?
Thanks
Grant.
I'd place a script into /sbin/init.d and symlink it from ../rc2.d and ../rc3.d, since these are network services. I think, the script i4l_hardware needs to run first. But otherwise, if you set up the stuff via yast, I also think it's started from the i4l script. (also in /sbin/init.d) Those chaps on suse-isdn will tell you much better... ;-) Juergen -- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\ -- 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/
On Fri, 26 May 2000, Grant Walton wrote:
I have a dumb question:
If you ask a dumb question, you're an idiot for five minutes. If you don't ask it, you're ignorant forever.
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?
There are choices here. The most commonly recommended way is to put a complete script to start and stop the server in /etc/rc.d/init.d. This script should take a parameter which is "start", "stop", or "restart", and on each execution do whichever of those it is told to. Then you establish symbolic links to it in /etc/rc.d/rc?.d where ? is the various boot levels (1 = text only no networking, 2 = text only with networking, 3 = X and networking). These symbolic links are named S??xxxxx and K??xxxx where xxxxxx is typically (makes things easier to find) a repeat of the script name, and the number (which may not be the same in both cases) is used to specify the order of this script relative to other scripts. Something started by the above method is started ONCE as the machine enters the runlevel (and again as it is shut down), and can be manually run by root as needed. If you have something that is known to be extremely reliable, it can also be put in /etc/inittab but you'll have to read the man page for details. You get to put ONE command in inittab for each thing you want to start, and I don't think you can use parameters, so again you'll probably want to run a script. And you may want to leave the K?? link from the previous approach. With inittab you can still specify what runlevels the program will start in. And if the program terminates, it will be automatically restarted (which is BAD, if some bug or system condition causes it to self-terminate quickly). I'm thinking about doing this with pppd on my firewall. -- 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/
participants (5)
-
juergen.braukmann@ruhr-west.de
-
ncfcrh@global.co.za
-
raffo@neuronet.pitt.edu
-
tbaskan@jetpa.com.tr
-
warrl@blarg.net