-   Red Hat (
-   -   RHEL3: init scripts aren't executed (

dabang 01-04-2007 06:08 AM

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?

dabang 01-04-2007 07:50 AM

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.

Lenard 01-04-2007 07:54 AM

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

All times are GMT -5. The time now is 10:01 AM.