LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 609|回复: 2

[solved]你们有nonetwork这个启动级别吗?

[复制链接]
发表于 2009-12-28 10:31:38 | 显示全部楼层 |阅读模式
你们有nonetwork这个东西吗?

正在学习gentoo的系统启动,

发现自己/etc/runlevels下面有一个nonetwork,感激很奇怪,应该不是我自己添加的,难道是系统的default setting?

> ls -l
total 16
drwxr-xr-x 2 root root 4096 2009-11-26 09:35 boot
drwxr-xr-x 2 root root 4096 2009-12-03 18:26 default
drwxr-xr-x 2 root root 4096 2009-11-26 09:35 nonetwork
drwxr-xr-x 2 root root 4096 2009-11-26 09:35 single
> pwd
/etc/runlevels
> ls nonetwork/
local
> ls default/
hald  iptables  local  net.eth0  netmount  ntpd  syslog-ng


你们有这个启动级别吗?
 楼主| 发表于 2009-12-28 10:33:24 | 显示全部楼层
从时间上看应该不是我自己添加的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-28 10:59:07 | 显示全部楼层
What is a runlevel?

You have seen that init uses a numbering scheme to decide what runlevel it should activate. A runlevel is a state in which your system is running and contains a collection of scripts (runlevel scripts or initscripts) that must be executed when you enter or leave a runlevel.

In Gentoo, there are seven runlevels defined: three internal runlevels, and four user-defined runlevels. The internal runlevels are called sysinit, shutdown and reboot and do exactly what their names imply: initialize the system, powering off the system and rebooting the system.

The user-defined runlevels are those with an accompanying /etc/runlevels subdirectory: boot, default, nonetwork and single. The boot runlevel starts all system-necessary services which all other runlevels use. The remaining three runlevels differ in what services they start: default is used for day-to-day operations, nonetwork is used in case no network connectivity is required, and single is used when you need to fix the system.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表