Chinaunix首页 | 论坛 | 博客
  • 博客访问: 101891158
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类:

2008-04-07 15:24:09

  出处:Unix爱好者家园unix-cd.com  

/etc/inittab文件

    # cat /etc/inittab å

#    @(#) init.base 25.6 95/03/22

#

#    Copyright (C) 1988-1995 The Santa Cruz Operation Inc.

#        All Rights Reserved.

#    The information in this file is provided for the exclusive use of

#    the licensees of The Santa Cruz Operation Inc.  Such users have the

#    right to use modify and incorporate this code into other products

#    for purposes authorized by the license agreement provided they include

#    this notice and the associated copyright notice with any such product.

#    The information in this file is provided "AS IS" without warranty.

#

# /etc/inittab on 286/386 processors is built by Installable

# Drivers (ID) each time the kernel is rebuilt. /etc/inittab is replaced

# by /etc/conf/cf.d/init.base appended with the component files in the

# /etc/conf/init.d directory by the /etc/conf/bin/idmkinit command.

#

# To comment out an entry of /etc/inittab insert a # at start of line.

#

bchk::sysinit:/etc/bcheckrc /dev/console 2>&1

ifor::sysinit:/etc/ifor_pmd /usr/adm/pmd.log 2>&1

tcb::sysinit:/etc/smmck /dev/console 2>&1

ck:234:bootwait:/etc/asktimerc /dev/console 2>&1

ack:234:wait:/etc/authckrc /dev/console 2>&1

is:S:initdefault:

r0:056:wait:/etc/rc0  1> /dev/console 2>&1

r1:1:wait:/etc/rc1  1> /dev/console 2>&1

r2:2:wait:/etc/rc2 1> /dev/console 2>&1

r3:3:wait:/etc/rc3  1> /dev/console 2>&1

sd:0:wait:/etc/uadmin 2 0 >/dev/console 2>&1

fw:5:wait:/etc/uadmin 2 2 >/dev/console 2>&1

rb:6:wait:/etc/uadmin 2 1 >/dev/console 2>&1

co:2345:respawn:/etc/getty tty01 sc_m

co1:1:respawn:/bin/sh -c "sleep 20; exec /etc/getty tty01 sc_m"

c02:234:off:/etc/getty tty02 sc_m

c03:234:respawn:/etc/getty tty03 sc_m

c04:234:respawn:/etc/getty tty04 sc_m

c05:234:respawn:/etc/getty tty05 sc_m

c06:234:respawn:/etc/getty tty06 sc_m

c07:234:respawn:/etc/getty tty07 sc_m

c08:234:respawn:/etc/getty tty08 sc_m

c09:234:respawn:/etc/getty tty09 sc_m

c10:234:respawn:/etc/getty tty10 sc_m

c11:234:respawn:/etc/getty tty11 sc_m

c12:234:respawn:/etc/getty tty12 sc_m

sdd:234:respawn:/tcb/files/no_luid/sdd

tcp::sysinit:/etc/tcp start < /dev/null > /dev/null 2>&1

Se1a:234:off:/etc/getty tty1a m

Se1A:234:off:/etc/getty -t60 tty1A 3

Se2a:234:off:/etc/getty tty2a m

Se2A:234:off:/etc/getty -t60 tty2A 3

http::sysinit:/etc/scohttp start

scl:b:once:/etc/rc2.d/P86scologin start no_switch

sclb:2:bootwait:/etc/scologin init

#_

    /etc/inittab文件是一个普通的文本文件,每行信息是由用冒号分开的四个字段的登记项组成的。其格式为:

    idrstateactionprocess  (这里的三个冒号“:”不能省)。

    id:最多由四个字符组成的特殊的惟一的确认标识符。

    rstate:执行登记项的init级(run-level)。

    action:指明init在进程中将要执行的动作的关键字,如boot bootwait

    process:在进入特定的运行级后,init所执行的进程。

    /etc/inittab文件中的内容实际上是进程和运行级别的对照表。当系统进入某一运行级别时,处于该级别的所有进程都将被激活。init进程在三种状态下读/etc/inittab文件,即在引导系统时,当init进程启动的进程结束时和当系统管理员带一个运行级参数时。

阅读(451) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~