关于初始化shell脚本的头部疑问
# Comments to support chkconfig on RedHat Linux
# chkconfig: 2345 64 36
# description: A very fast and reliable SQL database engine.
# Comments to support LSB init script conventions
### BEGIN INIT INFO
# Provides: ovmm_mysql
# Required-Start: $local_fs $network $remote_fs
# Should-Start: ypbind nscd ldap ntpd xntpd
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop MySQL
# Description: MySQL is a very fast and reliable SQL database engine.
### END INIT INFO
1. 这些都comment 加星号了,系统能够认识,是有特殊约定?我理解前三行是用chkconfig 把此脚本加到系统启动里
2. 下面的support LSB 是说为了兼容各种linux系统?那么在什么情况下系统会看这段呢?因为上面已经设置了
启动顺序,下面又定义了服务的依赖关系,不会产生冲突吗?
3. 下面那部分的依赖, local_fs这些,我不知道我的服务应该依赖什么,也就是说这个全集在哪能看到?
should start后面的ypbind这些,全集又在哪里?
谢谢!