|
slk一直采用bsd风格启动,我也是希望通通过这来实际的了解一下bsd启动风格。
但是我却发现了这样一个问题:
文件/etc/rc.d/rc.sysvinit,中有这么一段
# However, many binary packages exist that install SystemV
# init scripts. With rc.sysvinit in place, most well-written
# startup scripts will work. This is primarily intended to
# support commercial software, though, and probably shouldn't
# be considered bug free.
也就是说为了适应多数的商业软件,才写了这一个脚本。
但是文件/etc/rc.d/rc.6(/etc/rc.d/rc.0是一个指向rc.6的符号连接),的第一段就是
# If there are SystemV init scripts for this runlevel, run them.
if [ -x /etc/rc.d/rc.sysvinit ]; then
. /etc/rc.d/rc.sysvinit
fi
关机时为什么还要执行这个脚本呢? |
|