【发布时间】:2011-08-12 01:26:55
【问题描述】:
The Debian wiki 给出了“INIT INFO”的以下示例:
### BEGIN INIT INFO
# Provides: scriptname
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
然后文档中关于Required-stop的内容如下:
必需停止:boot_facility_1 [boot_facility_2...]
定义服务使用的设施 由脚本提供。设施 此脚本提供的应该停止 在列出的设施之前 停下来避免冲突。 通常情况下 你会在这里包括同样的 所需开始的设施 关键字。
如果在设施停止之前不会运行,那么将相同的值设置为 Required-Start 是不是毫无意义?
【问题讨论】: