Chinaunix首页 | 论坛 | 博客
  • 博客访问: 441623
  • 博文数量: 52
  • 博客积分: 1076
  • 博客等级: 准尉
  • 技术积分: 821
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-18 20:05
个人简介

Hello World !

文章分类

全部博文(52)

文章存档

2016年(1)

2014年(1)

2013年(8)

2012年(38)

2011年(4)

分类: LINUX

2012-08-09 22:24:57

[root@lyn rc.d]# more /etc/inittab

#

# inittab       This file describes how the INIT process should set up

#               the system in a certain run-level.

#

# Author:       Miquel van Smoorenburg,

#               Modified for RHS Linux by Marc Ewing and Donnie Barnes

#

 

# Default runlevel. The runlevels used by RHS are:

0 - halt (Do NOT set initdefault to this) 系统停机状态 rc0.d

1 - SIngle user mode 单用户工作状态 rc1.d

2 - Multiuser, without NFS (The same as 3,if you do not have networking ) 多用户状态(没有NFS【文件服务系统】)  rc2.d

3 - Full multiuser mode 多用户状态(有NFS rc3.d

4 - unused 系统未使用,留给用户 rc4.d

5 - X11 图形界面 rc5.d

6 - reboot (Do NOT set initdefault to this) 系统正常关闭并重新启动 rc6.d

#

id:3:initdefault:

 

# System initialization.

si::sysinit:/etc/rc.d/rc.sysinit

 

l0:0:wait:/etc/rc.d/rc 0

l1:1:wait:/etc/rc.d/rc 1

l2:2:wait:/etc/rc.d/rc 2

l3:3:wait:/etc/rc.d/rc 3

l4:4:wait:/etc/rc.d/rc 4

l5:5:wait:/etc/rc.d/rc 5

l6:6:wait:/etc/rc.d/rc 6

 

# Trap CTRL-ALT-DELETE

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

 

# When our UPS tells us power has failed, assume we have a few minutes

# of power left.  Schedule a shutdown for 2 minutes from now.

# This does, of course, assume you have powerd installed and your

# UPS connected and working correctly.

pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

 

# If power was restored before the shutdown kicked in, cancel it.

pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"

 

 

# Run gettys in standard runlevels

1:2345:respawn:/sbin/mingetty tty1

2:2345:respawn:/sbin/mingetty tty2

3:2345:respawn:/sbin/mingetty tty3

4:2345:respawn:/sbin/mingetty tty4

5:2345:respawn:/sbin/mingetty tty5

6:2345:respawn:/sbin/mingetty tty6

 

# Run xdm in runlevel 5

x:5:respawn:/etc/X11/prefdm –nodaemon

 

[root@lyn rc3.d]# pwd

/etc/rc.d/rc3.d

[root@lyn rc3.d]# ll

total 240

lrwxrwxrwx 1 root root 17 Aug  8 00:26 K01dnsmasq -> ../init.d/dnsmasq

lrwxrwxrwx 1 root root 24 Aug  8 00:27 K02NetworkManager -> ../init.d/NetworkManager

lrwxrwxrwx 1 root root 16 Aug  8 00:26 K05conman -> ../init.d/conman

lrwxrwxrwx 1 root root 19 Aug  8 00:26 K05saslauthd -> ../init.d/saslauthd

lrwxrwxrwx 1 root root 16 Aug  8 00:26 K10psacct -> ../init.d/psacct

lrwxrwxrwx 1 root root 13 Aug  8 00:27 K20nfs -> ../init.d/nfs

lrwxrwxrwx 1 root root 14 Aug  8 00:27 K24irda -> ../init.d/irda

lrwxrwxrwx 1 root root 20 Aug  8 00:26 K50netconsole -> ../init.d/netconsole

lrwxrwxrwx 1 root root 20 Aug  8 00:27 K69rpcsvcgssd -> ../init.d/rpcsvcgssd

lrwxrwxrwx 1 root root 16 Aug  8 00:27 K73ypbind -> ../init.d/ypbind

lrwxrwxrwx 1 root root 14 Aug  8 07:37 K74ipmi -> ../init.d/ipmi

lrwxrwxrwx 1 root root 14 Aug  8 00:26 K74nscd -> ../init.d/nscd

lrwxrwxrwx 1 root root 15 Aug  8 00:26 K85mdmpd -> ../init.d/mdmpd

lrwxrwxrwx 1 root root 20 Aug  8 00:25 K87multipathd -> ../init.d/multipathd

lrwxrwxrwx 1 root root 24 Aug  8 00:26 K88wpa_supplicant -> ../init.d/wpa_supplicant

lrwxrwxrwx 1 root root 14 Aug  8 00:26 K89dund -> ../init.d/dund

lrwxrwxrwx 1 root root 18 Aug  8 00:25 K89netplugd -> ../init.d/netplugd

lrwxrwxrwx 1 root root 14 Aug  8 00:26 K89pand -> ../init.d/pand

lrwxrwxrwx 1 root root 15 Aug  8 00:25 K89rdisc -> ../init.d/rdisc

lrwxrwxrwx 1 root root 25 Aug  8 00:26 K99readahead_later -> ../init.d/readahead_later

lrwxrwxrwx 1 root root 23 Aug  8 00:26 S00microcode_ctl -> ../init.d/microcode_ctl

lrwxrwxrwx 1 root root 25 Aug  8 00:26 S04readahead_early -> ../init.d/readahead_early

lrwxrwxrwx 1 root root 15 Aug  8 00:27 S05kudzu -> ../init.d/kudzu

lrwxrwxrwx 1 root root 16 Aug  8 00:26 S07iscsid -> ../init.d/iscsid

lrwxrwxrwx 1 root root 19 Aug  8 00:25 S08ip6tables -> ../init.d/ip6tables

lrwxrwxrwx 1 root root 18 Aug  8 00:25 S08iptables -> ../init.d/iptables

lrwxrwxrwx 1 root root 18 Aug  8 00:26 S08mcstrans -> ../init.d/mcstrans

lrwxrwxrwx 1 root root 17 Aug  8 00:26 S10network -> ../init.d/network

lrwxrwxrwx 1 root root 16 Aug  8 00:26 S11auditd -> ../init.d/auditd

lrwxrwxrwx 1 root root 21 Aug  8 00:26 S12restorecond -> ../init.d/restorecond

lrwxrwxrwx 1 root root 16 Aug  8 00:26 S12syslog -> ../init.d/syslog

lrwxrwxrwx 1 root root 18 Aug  8 00:25 S13cpuspeed -> ../init.d/cpuspeed

lrwxrwxrwx 1 root root 20 Aug  8 00:26 S13irqbalance -> ../init.d/irqbalance

lrwxrwxrwx 1 root root 15 Aug  8 00:26 S13iscsi -> ../init.d/iscsi

lrwxrwxrwx 1 root root 17 Aug  8 00:26 S13portmap -> ../init.d/portmap

lrwxrwxrwx 1 root root 17 Aug  8 00:27 S14nfslock -> ../init.d/nfslock

lrwxrwxrwx 1 root root 19 Aug  8 00:26 S15mdmonitor -> ../init.d/mdmonitor

lrwxrwxrwx 1 root root 19 Aug  8 00:27 S18rpcidmapd -> ../init.d/rpcidmapd

lrwxrwxrwx 1 root root 17 Aug  8 00:27 S19rpcgssd -> ../init.d/rpcgssd

lrwxrwxrwx 1 root root 20 Aug  8 00:26 S22messagebus -> ../init.d/messagebus

lrwxrwxrwx 1 root root 19 Aug  8 00:26 S25bluetooth -> ../init.d/bluetooth

lrwxrwxrwx 1 root root 15 Aug  8 00:26 S25netfs -> ../init.d/netfs

lrwxrwxrwx 1 root root 15 Aug  8 00:27 S25pcscd -> ../init.d/pcscd

lrwxrwxrwx 1 root root 15 Aug  8 00:26 S26acpid -> ../init.d/acpid

lrwxrwxrwx 1 root root 14 Aug  8 00:27 S26apmd -> ../init.d/apmd

lrwxrwxrwx 1 root root 19 Aug  8 00:27 S26haldaemon -> ../init.d/haldaemon

lrwxrwxrwx 1 root root 14 Aug  8 00:26 S26hidd -> ../init.d/hidd

lrwxrwxrwx 1 root root 22 Aug  8 07:37 S26lvm2-monitor -> ../init.d/lvm2-monitor

lrwxrwxrwx 1 root root 16 Aug  8 00:26 S28autofs -> ../init.d/autofs

lrwxrwxrwx 1 root root 14 Aug  8 00:26 S55sshd -> ../init.d/sshd

lrwxrwxrwx 1 root root 20 Aug  8 00:26 S56rawdevices -> ../init.d/rawdevices

lrwxrwxrwx 1 root root 15 Aug  8 07:37 S64mysql -> ../init.d/mysql

lrwxrwxrwx 1 root root 18 Aug  8 00:26 S80sendmail -> ../init.d/sendmail

lrwxrwxrwx 1 root root 13 Aug  8 00:25 S85gpm -> ../init.d/gpm

lrwxrwxrwx 1 root root 15 Aug  8 00:26 S90crond -> ../init.d/crond

lrwxrwxrwx 1 root root 17 Aug  8 00:25 S95anacron -> ../init.d/anacron

lrwxrwxrwx 1 root root 13 Aug  8 00:26 S95atd -> ../init.d/atd

lrwxrwxrwx 1 root root 15 Aug  8 00:27 S97rhnsd -> ../init.d/rhnsd

lrwxrwxrwx 1 root root 19 Aug  8 00:27 S97rhsmcertd -> ../init.d/rhsmcertd

lrwxrwxrwx 1 root root 22 Aug  8 00:26 S97yum-updatesd -> ../init.d/yum-updatesd

lrwxrwxrwx 1 root root 19 Aug  8 00:27 S99firstboot -> ../init.d/firstboot

lrwxrwxrwx 1 root root 11 Aug  8 00:26 S99local -> ../rc.local

lrwxrwxrwx 1 root root 16 Aug  8 00:26 S99smartd -> ../init.d/smartd

K 杀死进程 关机

S 启动进程 开机

阅读(668) | 评论(0) | 转发(0) |
0

上一篇:Linux配置java环境变量

下一篇:Linux Banner

给主人留下些什么吧!~~