环境:Redhat
shell>vim /etc/init.d/lin_credible
#! /bin/bash#
# lin_credible
#
# chkconfig: 2345 13 90
# description: It's a test about "chkconfig"!
# 这下面就可以添加一些服务等之类的启动脚本或之类滴.当然,可以做假故障处理来玩儿喔 !
#
shell>chmod 755 /etc/init.d/lin_credible
shell>chkconfig lin_credible --level 2345 on
shell>chkconfig --list | grep lin_credible
.....