让你的daemon在Centos下也支持chkconfig

让你的daemon在Centos下也支持chkconfig

不是把daemon脚本拷贝到/etc/init.d下面都能够支持chkconfig的

能否支持chkconfig,主要看daemon脚本的头部注释
# chkconfig: 345 28 72
# processname: 
# description: 

其中最重要的是chkconfig这一行注释,345是表示默认的runlevel,28表示启动优先级,72表示关闭优先级。

你可能感兴趣的:(让你的daemon在Centos下也支持chkconfig)