New runlevel service


 
Thread Tools Search this Thread
Operating Systems Linux SuSE New runlevel service
# 1  
Old 01-15-2009
Question New runlevel service

Ok, I am attempting to add a new program to startup during the runlevel 3. I am using Suse 10.
I made a script lets call it foostart and placed it in /etc/init.d. It has 777 permissions on the script.
I then created a link ln -s /etc/init.d/foostart /etc/init.d/rc3.d/S99foostart
But during bootup the script will not run.
I can run /etc/init.d/footstart start and it will execute fine. I can even go into yast and see it in there and start it from there and it starts fine. What am I missing for it not to start during bootup. thanks for any help.
# 2  
Old 01-15-2009
isn't the path /etc/rc3.d/S99foostart? and what are the permissions and who is owner of the link and the script in init.d? post the output of "ls -l /path/to/script".
# 3  
Old 01-15-2009
gold:/etc/init.d # ls -lrt /etc/init.d/foostart
-rwxrwxrwx 1 root root 143 2009-01-15 12:43 /etc/init.d/foostart
gold:/etc/init.d #

gold:/etc/init.d # ls -lrt /etc/init.d/rc3.d/S99*
lrwxrwxrwx 1 root root 20 2009-01-15 12:50 /etc/init.d/rc3.d/S99foostart -> /etc/init.d/foostart
gold:/etc/init.d #
# 4  
Old 01-15-2009
again, is this "/etc/init.d/rc3.d/S99foostart" the right path? in all other linux/unix distros i know, the path is "/etc/rc3.d/S99whatever". i don't know suse and maybe your path is right but please check this...

Last edited by DukeNuke2; 01-15-2009 at 07:34 PM..
# 5  
Old 01-15-2009
Quote:
Originally Posted by DukeNuke2
again, is this "/etc/init.d/rc3.d/S99foostart" the right path? in all other linux/unix distros i know, the path is "/etc/rc3.d/S99whatever". i don't now suse and maybe your path is right but please check this...
Yes that's the right path, as there is no rc3.d and all other runlevel programs are in the paths.
# 6  
Old 01-15-2009
all looks fine for me so far... so this is a suse problem or something is wrong with the script itself... i've no suse system to test this. i've moved the thread to the suse subforum. maybe a suse user knows how to solve this?!

greets,
DN2
# 7  
Old 01-15-2009
I changed S99 to S10 and now it seems to be running at startup. Anyone know why that is? Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Programming

Problem in determining runlevel through a C program

Hi, I am trying with the following code to retrieve the runlevel of my Linux Ubuntu 8.04 system by reading the "utmp" database. But I am getting blank output. May I know what correction I should do inorder to make this program to work? #include <stdio.h> #include <stdlib.h> #include... (1 Reply)
Discussion started by: royalibrahim
1 Replies

2. Solaris

runlevel issue

hi all i am using solaris 10 with run level 3.(Graphical Interface). I am a beginner to solaris so that i just want to do some R&D with my machine. I decided to boot into the command line interface, so i go througth the internet and find that the following command should be given to boot into the... (8 Replies)
Discussion started by: kingston
8 Replies

3. Red Hat

Running a script in runlevel 1

hi all i have to run a script in run level 1 automatically i.e when i give init 1 from runlevel 3 that script should run after entering into runlevel 1. where can i put that script so that it will run as i said above..??? something similar to rc.local but this will run in runlevel 3(... (1 Reply)
Discussion started by: sagar_md
1 Replies

4. UNIX for Advanced & Expert Users

Multiple runlevel options at Bootup

Is it possible to give multiple runlevel options during boot up.. When the Welcome screen appears, i want to give multiple runlevel options.. So the user can boot into any desired runlevel he wants.. Found this kinda interesting.. Any hints and solutions please? (2 Replies)
Discussion started by: srikumar_cs
2 Replies

5. Linux

Runlevel(s)

Can some exsplain to to me what runlevel 1-9 do? I need to know. (5 Replies)
Discussion started by: Irish Jimmy
5 Replies

6. Linux

runlevel from cmdline or lilo?

Hi, Is it possible to specify runlevel from bootloader command line? I would like to override settings from /etc/inittab without changing it. Thanks (2 Replies)
Discussion started by: odys
2 Replies

7. UNIX for Dummies Questions & Answers

Runlevel in Freebsd?

Hello, Is there any runlevels in freebsd? Like in linux or solaris? Thanks -I (2 Replies)
Discussion started by: Insomniac
2 Replies
Login or Register to Ask a Question