免费注册 查看新帖 |

Chinaunix

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

init [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-13 00:18 |只看该作者 |倒序浏览
init
init [bootflags]  [runlevel]
System administration command. Initialize system. Usually run from the boot loader—e.g., lilo or grub.
Boot flags
-a,auto
Set the AUTOBOOT environment variable to yes. The boot loader will do this automatically when booting with the default command line.
-b
Boot directly into a single-user shell for emergency recovery.
-s,S,single
Single-user mode.
-b,emergency
Boot into single-user mode but do not run any other startup scripts.
-z characters
The specified characters are ignored, but will make the command line take up a bit more room on the stack. init uses the extra space to show the current runlevel when running the ps command.
Files
init is the first process run by any Unix machine at boot
time. It verifies the integrity of all filesystems and then creates
other processes, using fork and exec, as specified by /etc/inittab. Which processes may be run is controlled by runlevel. All process terminations are recorded in /var/run/utmp and /var/log/wtmp. When the runlevel changes, init sends SIGTERM and then, after 20 seconds, SIGKILL to all processes that cannot be run in the new runlevel.
Runlevels
The current runlevel may be changed by telinit, which is often just a link to init. The default runlevels vary from distribution to distribution, but these are standard:
0
Halt the system.
1, s, S
Single-user mode.
3
Multiuser mode, console login. This is commonly used in server configurations.
5
Full graphical mode. This is a common default for desktop configurations.
6
Reboot the system. Never set the default runlevel to 6.
q, Q
Reread /etc/inittab.
Check the /etc/inittab file for runlevels on your system.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22178/showart_154695.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP