LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Created script for boot, never runs ? (https://www.linuxquestions.org/questions/suse-opensuse-60/created-script-for-boot-never-runs-562029/)

Sanborn 06-15-2007 09:29 AM

Created script for boot, never runs ?
 
Hello,

So I made a file that would run the command 'route add 192.168.0.1 gw 30.38.72.50' on boot by doing. I set the permissions, linked it, and enabled it in Yast. Runlevel set are 3,5,S (I don't know what S does, this is my first week with Linux). Inside rd3/5/S.d I changed the order so they were S99 and K99 to execute behind all of the services (so I think).

Inside this file I also wrote echo hello >> diditwork.txt to check to see if anything ever occurs.

Can you tell me what I did wrong or missed? For the life of me I cannot get this to work.

If you want to see what I have already tried in general:
thread: Can you explain to me how this script works
http://www.linuxquestions.org/questi...d.php?t=561613
(I no longer use that Case loop)

thread:Where to add route command in files to make it stay on every bootup?
http://www.linuxquestions.org/questi...d.php?t=561271

And sorry if linking to other threads is a no-no, i figured it might help.

auxsvr 06-16-2007 12:14 PM

If you're using opensuse 10.2, the file to store the static routes is /etc/sysconfig/network/routes, you can edit it via YaST if you like. In order to install the script you wrote as a service, you need to use insserv (man insserv).

Sanborn 06-21-2007 01:30 PM

Well I mean I used insserv and it installed the start/kill links in RC3 and RC5, but still nothing happens.

Does my script qualify as a "service" ? Any other methods of making this file pop up on boot and issue the route command?

Also, when I use the YaST Routing tool it doesn't seem to make changes. The routes stay in the GUI but never seem to activate.


All times are GMT -5. The time now is 02:13 PM.