免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2686 | 回复: 6
打印 上一主题 下一主题

[新手入门] 菜鸟a,b,c,h run level的简单问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-16 22:16 |只看该作者 |倒序浏览
a,b,c,h These are not true run levels; they differ from run levels in that the init
command cannot request the entire system to enter these run levels.

又查了一些,但是感觉还不是很清晰。

Defined run levels:
0-1: Reserved for future use
2: Multiuser mode with NFS resources shared (default run level)
3-9: Defined according to the user's preferences
m,M,s,S: Single-user mode (maintenance level)
a,b,c: Starts processes assigned to the new run levels while leaving the existing processes at the current level running
Q,q: init command to reexamine the /etc/inittab file Note: When a level from 1 to 9 is specified, the init command kills processes at the current level and restarts any processes associated with the new run level based on the /etc/inittab file.

run level除了0, 1, 2---9以外,还有a,b,c,h,我看了一下注释,又想了一下鄙公司的是2b, 2c,那a,b,c,h其实不是真的run level。查了一下资料,是如上英文所述。不是很理解,这种run level是不能通过init进入,但是2b,2c等等又有何区别呢。

cat /etc/inittab |grep tsm,是可以看到原来2b, 2c的run level


# cat /etc/inittab |grep tsm
tsmsched:2cnce:/usr/local/tsm/rc.tsmsched #Start TSM scheduler
tsmcad:2bnce:/usr/local/tsm/rc.tsmcad #Start TSM client acceptor daemon

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2008-12-16 22:50 |只看该作者
man telinit

a,b,c,h          Tells the init command to process only those records in the /etc/inittab file with a, b, c, or h in the run level field. These four arguements, a, b, c, and h, are not true run levels. They differ from run levels in that the init command cannot request the entire system to enter run levels a, b, c, or h.

When the init command finds a record in the /etc/inittab file with a value of a, b, c, or h in the run level field, it starts the process. However, it does not kill any processes at the current run level; processes with a value of a, b, c, or h in the run level field are started in addition to the processes already running at the current system run level. Another difference between true run levels and a, b, c, or h is that processes started with a, b, c, or h are not stopped when the init command changes run levels. Three ways stop a, b, c, or h processes:

    * Type off in the Action field.
    * Delete the objects entirely.
    * Use the init command to enter maintenance state.

论坛徽章:
0
3 [报告]
发表于 2008-12-16 23:36 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
4 [报告]
发表于 2008-12-17 00:04 |只看该作者
Thanks...

论坛徽章:
0
5 [报告]
发表于 2008-12-18 04:39 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
6 [报告]
发表于 2008-12-18 10:30 |只看该作者
学习了,刚接触

论坛徽章:
0
7 [报告]
发表于 2008-12-18 22:26 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP