LNEXT
ONELCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q - to quit, <CR> - to continue
INITT1
s = single-user
2 = general single or multiple user mode
is:s:initdefault:
sy:s:sysinit:/etc/brc </dev/console >/dev/console 2>&1
br:2:wait:/etc/bcheckrc </dev/console >/dev/console 2>&1
rc:2:wait:/etc/rc > /dev/window < /dev/w1 2>&1
co:s01234562:respawn:/etc/getty console console
ph0:2:off:/etc/getty ph0 1200
ph1:2:respawn:/etc/getty ph1 1200
00:2:respawn:/etc/getty -t60 tty000 9600 kt7
01:2:respawn:/etc/getty -t60 tty001 9600 vt100
02:2:respawn:/etc/getty -t60 tty002 9600 wy50
INITT2
s = single-user
2 = general single or multiple user mode
is:s:initdefault:
sy:s:sysinit:/etc/brc </dev/console >/dev/console 2>&1
br:2:wait:/etc/bcheckrc </dev/console >/dev/console 2>&1
rc:2:wait:/etc/rc > /dev/window < /dev/w1 2>&1
co:s0123456:respawn:/etc/getty console console
ph0:2:off:/etc/getty ph0 1200
ph1:2:respawn:/etc/getty ph1 1200
00:2:respawn:/etc/getty -t60 tty000 9600
01:2:respawn:/etc/getty -t60 tty001 9600
02:2:respawn:/etc/getty -t60 tty002 9600
GO
The file /etc/inittab serves as the indicator to the process init
for indicating which processes to run on which level. Valid levels
for init are 0 to 6 and the letter s. s is a single-user mode,
and 2 is normally the multi-user mode. As you will soon notice, the
getty process for the console is activated during all
levels, while for other terminals during level 2.
A portion of a typical /etc/inittab file is shown above.
Please notice that the format of each line in the file is:
id:level:action:process.
The id is one or two characters that uniquely identify a line.
level is one or more numbers (0 through 6) or the letter 's'
that determine what level(s) action is to take place.
action can be one of the following:
initdefault - when init starts, it will enter level;
the process field for this action has no meaning.
sysinit - run process before init sends anything
to the system console.
respawn - if process doesn't exist, start it, wait for
it to finish, and start another, e.g.;
getty->login->sh->log off->respawn getty.
wait - when going to level, start process and
wait until it's finished (init doesn't wait by default).
off - when going to level, kill process.
process - is any executable program, including shell programs.
Please notice again above that the terminals are activated
once the system goes into multi-user mode:
To familiarize yourself with your
local inittab, please enter
the command to display the inittab
file on your system:
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type cat /etc/inittab
Please type cat /etc/inittab
You will be helped this time!
$PROMPT$
FORGET1
cat /etc/inittab
Please observe the result.
is:0:initdefault:
su:0:respawn:/etc/getty syscon C vt100
bc:1:wait:/etc/brc </dev/syscon 1>/dev/syscon 2>&1 #bootrun command
bl:1:wait:/etc/bcheckrc </dev/syscon 1>/dev/syscon 2>&1 #bootlog
rc:1:wait:/etc/rc </dev/syscon 1>/dev/syscon 2>&1 #run com
tb:1:respawn:/etc/getty ttyb d vt100
hp00::sysinit:/etc/ldhpsio /etc/hpsio.out /dev/hp00 1>/dev/syscon 2>&1
ta:1:off:/etc/getty ttya
t01:1:off:/etc/getty tty01
t00:1:respawn:/etc/getty tty00 d vt100