LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-15-2007, 09:29 AM   #1
Sanborn
Member
 
Registered: Jun 2007
Distribution: Suse 10.1
Posts: 40

Rep: Reputation: 15
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.
 
Old 06-16-2007, 12:14 PM   #2
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
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).
 
Old 06-21-2007, 01:30 PM   #3
Sanborn
Member
 
Registered: Jun 2007
Distribution: Suse 10.1
Posts: 40

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create script that runs a command on boot up EFiNi7 SUSE / openSUSE 5 08-09-2006 10:43 PM
Script that runs on startup spank Ubuntu 3 07-04-2006 11:56 AM
creating shell script that executes as root regardless of who runs the script? m3kgt Linux - General 13 06-04-2004 10:23 PM
a script that runs every 5 minutes? zovres Linux - Newbie 5 08-19-2003 12:14 AM
Linux Users created via Script ??? HOW ?? Lutzer Linux - Networking 1 07-31-2002 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration