Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 01-04-2007, 06:08 AM   #1
Registered: May 2005
Location: Germany
Distribution: sidux, Debian, Ubuntu
Posts: 30

Rep: Reputation: 15
RHEL3: init scripts aren't executed

Hi there!

I'm having a problem with a server running RHEL3: when it boots up it won't start any of the services anymore (which means it did in the past...). I don't know what changed.
To look into the problem I changed the default runlevel in /etc/inittab to "2".
Those start-scripts reside in /etc/rc2.d:

S01sysstat    S12syslog  S58ntpd    S90crond        
S10network    S20random  S85mysqld  S97rhnsd
S11kernelsec  S55sshd    S86osad    S99local
Sadly after S10network no other script seems to be executed, so the eth0 is configured. init is running:

ps -ef |grep init
root         1     0  0 11:12 ?        00:00:04 init
root       835   729  0 12:56 ttyS0    00:00:00 grep init
No error messages during boot process. I can execute those scripts by

/etc/init.d/[script] start
with no problems. So why aren't they executed on start up?
I found some manuals on the boot process of RHEL3 but they won't give me a hint where to look at. So, where would be a good place to have a closer to look at?
Old 01-04-2007, 07:50 AM   #2
Registered: May 2005
Location: Germany
Distribution: sidux, Debian, Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 15
OK, had some help and got it now! It was a problem with /etc/init.d/network... The script stuck and init wouldn't go on.
Old 01-04-2007, 07:54 AM   #3
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Because you choose the wrong runlevel, use runlevel 3 instead of runlevel 2 as explained in your /etc/inittab file;

# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
I took the liberty to set the runlevel as 3 in the code snippet above. See the difference;

$ pwd
$ ls S*
S04readahead_early  S13portmap     S22messagebus  S85gpm      S98haldaemon
S06cpuspeed         S14nfslock     S25netfs       S90crond    S99local
S08iptables         S18rpcidmapd   S44acpid       S90xfs      S99smartd
S10network          S19rpcgssd     S55cups        S95anacron
S12syslog           S19rpcsvcgssd  S58ntpd        S95atd

As root type something like(no rebooting needed); telinit 3


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
Init Scripts brazilian_user Linux - General 3 12-05-2006 08:51 AM
what is the scripts in /etc/init.d for? blackzone Linux - General 7 09-06-2006 11:10 PM
init scripts lvgandhi Debian 2 10-11-2005 02:44 AM
New init scripts? xconspirisist Fedora 9 12-09-2004 11:41 AM
Scripts in /etc/rc.d/init.d correro Linux - General 1 03-13-2003 09:47 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

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

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