谁能解释这个奇怪的/etc/inittab?
时间:2011-04-01
来源:互联网
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# The /etc/inittab file controls the configuration of init(1M); for more
# information refer to init(1M) and inittab(4). It is no longer
# necessary to edit inittab(4) directly; administrators should use the
# Solaris Service Management Facility (SMF) to define services instead.
# Refer to smf(5) and the System Administration Guide for more
# information on SMF.
#
# For modifying parameters passed to ttymon, use svccfg(1m) to modify
# the SMF repository. For example:
#
# # svccfg
# svc:> select system/console-login
# svc:/system/console-login> setprop ttymon/terminal_type = "xterm"
# svc:/system/console-login> exit
#
#ident "@(#)inittab 1.41 04/12/14 SMI"
ap::sysinit:/sbin/autopush -f /etc/iu.ap
sp::sysinit:/sbin/soconfig -f /etc/sock2path
smf::sysinit:/lib/svc/bin/svc.startd >/dev/msglog 2<>/dev/msglog </dev/console
p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
pt:s1234:powerfail:/usr/lib/svc/method/installupdates lock
LT:3:respawn:/usr/sbin/tictimed >/dev/msglog 2<>/dev/msglog
inttab只有这么多内容
最后一行说,默认启动模式3
但是没有发现去读 /etc/rc$.d/ 呀。
若加一项默认启动程序,同事说加到 /etc/rc2.d/S** 就行,这个为什么是rc2.d呢?
# Use is subject to license terms.
#
# The /etc/inittab file controls the configuration of init(1M); for more
# information refer to init(1M) and inittab(4). It is no longer
# necessary to edit inittab(4) directly; administrators should use the
# Solaris Service Management Facility (SMF) to define services instead.
# Refer to smf(5) and the System Administration Guide for more
# information on SMF.
#
# For modifying parameters passed to ttymon, use svccfg(1m) to modify
# the SMF repository. For example:
#
# # svccfg
# svc:> select system/console-login
# svc:/system/console-login> setprop ttymon/terminal_type = "xterm"
# svc:/system/console-login> exit
#
#ident "@(#)inittab 1.41 04/12/14 SMI"
ap::sysinit:/sbin/autopush -f /etc/iu.ap
sp::sysinit:/sbin/soconfig -f /etc/sock2path
smf::sysinit:/lib/svc/bin/svc.startd >/dev/msglog 2<>/dev/msglog </dev/console
p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
pt:s1234:powerfail:/usr/lib/svc/method/installupdates lock
LT:3:respawn:/usr/sbin/tictimed >/dev/msglog 2<>/dev/msglog
inttab只有这么多内容
最后一行说,默认启动模式3
但是没有发现去读 /etc/rc$.d/ 呀。
若加一项默认启动程序,同事说加到 /etc/rc2.d/S** 就行,这个为什么是rc2.d呢?
作者: 饭碗儿 发布时间: 2011-04-01
rc2.d中的都是要在运行级别2启动的,此时系统已经完全启动进入多用户了,此时只能访问本地资源。
rc3.d中的是要在运行级别3启动的,多了系统正常启动后要启动nfs,此时可以跨网络访问资源。
rc2.d和rc3.d都是多用户模式。
把你自己的启动脚本放到rc2.d就是指不需要启动nfs也能启动你的程序。
rc3.d中的是要在运行级别3启动的,多了系统正常启动后要启动nfs,此时可以跨网络访问资源。
rc2.d和rc3.d都是多用户模式。
把你自己的启动脚本放到rc2.d就是指不需要启动nfs也能启动你的程序。
作者: easybegin 发布时间: 2011-04-01
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28