LinuxSir.cn,穿越时空的Linuxsir!

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

suse下SysV启动脚本格式问题,如果确定/etc/init.d/rcX.d/SnumXX的num?

[复制链接]
发表于 2005-12-1 17:09:45 | 显示全部楼层 |阅读模式
Redhat的SysV脚本格式里有定义num的地方,比如
# chkconfig: 345 97 03
默认在runlevel 345启动,S97 , K03
SuSE里只有如下格式:
### BEGIN INIT INFO
# Provides:       autofs
# Required-Start: $network $syslog $remote_fs
# X-UnitedLinux-Should-Start: ypbind keyserv nfslock
# Required-Stop:
# X-UnitedLinux-Should-Stop:
# Default-Start:  3 5
# Default-Stop:
# Description:    Start the autofs daemon for automatic mounting of filesystems.
### END INIT INFO
没有具体定义NUM的地方,required-start 是如何定义num的,希望给个man或doc的看看!
 楼主| 发表于 2005-12-1 17:26:48 | 显示全部楼层
我看了insserv 的man 但是解释的不是很清楚!
### BEGIN INIT INFO
# Provides:       boot_facility_1 [ boot_facility_2 ...]
# Required-Start: boot_facility_1 [ boot_facility_2 ...]
# Required-Stop:  boot_facility_1 [ boot_facility_2 ...]
# X-UnitedLinux-Should-Start: boot_facility_1 [ boot_facility_2 ...]
# X-UnitedLinux-Should-Stop:  boot_facility_1 [ boot_facility_2 ...]
# Default-Start:  run_level_1 [ run_level_2 ...]
# Default-Stop:   run_level_1 [ run_level_2 ...]
# Description:    multiline_description
### END INIT INFO
and  calculating  the  dependencies  between  all  scripts.   Please  note, that the Required-Stop, X-UnitedLinux-Should-Stop, and
       Default-Stop are ignored in SuSE Linux, because the SuSE boot script concept uses a  differential  link  scheme  (see  init.d(7)).
       With  known  dependencies  and  runlevel(s)  insserv sets and reorders the corresponding symbolic links of the concerned runlevels
       directories (see init.d(7)).
回复 支持 反对

使用道具 举报

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

本版积分规则

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