You are not logged in.

#1 2010-01-05 14:23:00

xiaweitang
Member
Registered: 2010-01-03
Posts: 61

What's the relationship between inittab and rc.conf? [Solved]

inittab starts programs at startup, while rc.conf also starts daemons. Which one is exectued first and which one has higher priority?

Last edited by xiaweitang (2010-01-17 21:26:09)

Offline

#2 2010-01-05 14:45:01

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: What's the relationship between inittab and rc.conf? [Solved]

Offline

#3 2010-01-05 14:45:51

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: What's the relationship between inittab and rc.conf? [Solved]

AFAIK, inittab specifies the default runlevel to boot into, whereas rc.conf's DAEMONS array specifies the daemons to be started when entering runlevels 3 or 5. If you decide to boot into X by setting the default runlevel to 5, the daemons in rc.conf will be started and then X will start in the way you set it in inittab. You can also boot into X by leaving inittab default (booting to runlevel 3) and starting a graphical login daemon (gdm, kdm, slim...) in rc.conf. The latter has a downside: you can't avoid starting the graphical login when entering runlevel 3. With the former method, you can add a 3 at the end of the kernel line in grub to boot to runlevel 3 (without X).

Offline

#4 2010-01-06 00:35:21

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: What's the relationship between inittab and rc.conf? [Solved]

also, /etc/inittab has a line:

rm:2345:wait:/etc/rc.multi

which runs rc.multi at runlevels 2, 3, 4 and 5. This is the script that starts the daemons listed in rc.conf, and after that anything else listed in inittab for your runlevel will be executed.


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

Board footer

Powered by FluxBB