|
|
发表于 2006-7-27 14:09:30
|
显示全部楼层
Post by d00m3d
...
在你给出的连结中,有这一段:
In BSD-init scripts, each runlevel is given a single rc file. In System V, each runlevel is given its own directory, each containing numerous init scripts.
觉得 Gentoo 的方式比较像 BSD
那就让我们来看看吧。这是Gentoo下的runlevels:
- $ ls /etc/runlevels/
- boot default nonetwork single
- $ ls /etc/runlevels/boot/
- bootmisc checkroot consolefont hdparm keymaps modules rmnologin
- checkfs clock domainname hostname localmount net.lo urandom
- $ ls /etc/runlevels/default/
- alsasound coldplug domainname local net.eth0 netmount syslog-ng
- 。。。
复制代码
可以看到每个runlevel有自己的目录,每个目录有很多init scripts。只不过和传统的System V相比,Gentoo用的是名称,而不是数字(指rc0.d,rc1.d之类的目录)。 |
|