The naming convention for the RC scripts is as follows for any in /etc/init.d
Start scripts S##<base script name>
Kill scripts K##<base script name>
The ## represent the order in which the script will be executed during the run of runlevel control script. The order in which the scripts are executed is:
Kill scripts
Start Scripts
The order in which it will be execute is the same as the order of files in the output of:
`ls /etc/rc#.d/K*`
`ls /etc/rc#.d/S*`
So by this token the existence of K15httpd script implies that at this runlevel in your case 5 the apache(or another web service) should be stopped.
By same token the kill script for MySQL in lower levels then the one you start it in would be K02MySQL.
You can look at this link to read about the writing the System V init scripts.
发布评论
评论(1)
RC 脚本的命名约定如下
/etc/init.d
中的任何启动脚本S##<基本脚本名称>
K, ##<基本脚本名称>
##
表示运行级别控制脚本运行期间脚本的执行顺序。脚本执行的顺序是:执行的顺序与输出中文件的顺序相同:
因此,
K15httpd
的存在脚本意味着在您的情况5
的这个运行级别,apache(或其他 Web 服务)应该停止。出于同样的原因,较低级别的
MySQL
的终止脚本将是K02MySQL
。你可以看看这个链接以了解有关编写 System V 初始化脚本的信息。
The naming convention for the RC scripts is as follows for any in
/etc/init.d
S##<base script name>
K##<base script name>
The
##
represent the order in which the script will be executed during the run of runlevel control script. The order in which the scripts are executed is:The order in which it will be execute is the same as the order of files in the output of:
So by this token the existence of
K15httpd
script implies that at this runlevel in your case5
the apache(or another web service) should be stopped.By same token the kill script for
MySQL
in lower levels then the one you start it in would beK02MySQL
.You can look at this link to read about the writing the System V init scripts.