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 关键字相同的功能。
Required-Start
如果在设施停止之前它不会运行,那么设置相同的值不是没有意义吗?