- 论坛徽章:
- 0
|
请问,/etc下的 inetsvc与inetinit的作用是什么?
看脚本中的注释就知道了。
inetinit是在第二阶段被执行的,在启动NIS之前。实际上就是/etc/rc2.d/S69inet
inetsvc是在第三阶段被执行的,在启动NIS之后。因为它依赖NIS。实际上就是/etc/rc2.d/S72inetsvc
关于三个阶段的说明:
The first part,
# run in the "/etc/rcS.d/S30rootusr.sh" script, does all configuration
# necessary to mount the "/usr" filesystem via NFS. This includes configuring
# the interfaces and setting the machine's hostname. The second part,
# run in this script, does all configuration that can be done before
# NIS or NIS+ is started. This includes configuring IP routing,
# setting the NIS domainname and setting any tunable parameters. The
# third part, run in a subsequent startup script, does all
# configuration that may be dependent on NIS/NIS+ maps. This includes
# a final re-configuration of the interfaces and starting all internet
# services. |
|